strongloop / loopback-example-access-control

An example demonstrating LoopBack access control mechanisms.
Other
370 stars 168 forks source link

fix bug for mongodb #71

Closed chertpong closed 8 years ago

chertpong commented 8 years ago

Fixing bug: loopback-example-access-control\server\boot\sample-models.js:31 if (err) throw err; ^ ValidationError: The team instance is not valid. Details: memberId can't be blank (v alue: NaN).,ValidationError: The team instance is not valid. Details: memberId can't be blank (value: NaN).

Caused by changing datasource from memory to mongodb. In mongodb, type of id is string, not number.

slnode commented 8 years ago

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

richardpringle commented 8 years ago

ok to test

richardpringle commented 8 years ago

@chertpong, do you see the build that is failing? You need click on Details and sign the Contributor License Agreement for that to pass.