Skip to content

Commit

Permalink
fix by .toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsaber committed Nov 16, 2015
1 parent d7edf80 commit dda16b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/service/entities/custom_object_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ module.exports = function CustomObjectServiceModule(pb) {
options = {};
}

if (!pb.validation.isId(id, true)) {
if (!pb.validation.isIdStr(id.toString(), true)) {
return cb(new Error('INVALID_UID'));
}

Expand Down

0 comments on commit dda16b4

Please sign in to comment.