bigtunacan (12) [Avatar] Offline
#1
In diagram 7.20 the anonymous function within the exec is labeled as accepting either {} or [{}] as possible data types for the result/foundUser param. Is this true for
findOne


I would expect that it would only accept {} as findOne should only return a single JSON object?
283876 (35) [Avatar] Offline
#2
You are absolutely correct. There's also no second argument. I've made the correction. Thanks! Best, Irl
bigtunacan (12) [Avatar] Offline
#3
IRL,

If on the off chance you end up with an "Acknowledgements" section in your book you can feel free to mention me for all of the time I spend hanging out in this forum smilie

Love the work you are doing with Sails.
283876 (35) [Avatar] Offline
#4
Many many thanks!