diff --git a/models/user.js b/models/user.js index 77f94e2..ca95f5a 100644 --- a/models/user.js +++ b/models/user.js @@ -271,7 +271,7 @@ UserSchema.methods.toProfileJSON = function () { hasLinkedFacebook: !!this.getAuthStrategy('facebook'), hasLinkedGoogle: !!this.getAuthStrategy('google'), hasLocalAccount: !!this.getAuthStrategy('local'), - _id: this.id, + id: this.id, isAllowedToBid: this.isAllowedToBid, isOrganizationEmployee: this.isOrganizationEmployee, isVerified: this.isVerified,