When i call the method addEvent of the model User, not matter what i do always return this error:
Invalid attributes sent to User:
• id
• [object Object]
Somehow the save method try to update the model, and reset the id by an object and then trigger the validation that throw this error.
I am using mongodb with mongo-sails adapter, and sails version 0.12
Issue
When i call the method
addEvent
of the modelUser
, not matter what i do always return this error: Invalid attributes sent to User: • id • [object Object]Somehow the
save
method try to update the model, and reset the id by an object and then trigger the validation that throw this error.