I'm requesting the blueprint route User.findOne
in SailsJs on the basis of user Id but it itself is calling User.update
. Also, I just experienced a new thing that on sending multiple parameters to findOne
, it updates the record on the basis of any single matched parameter. On the other hand, If i do create a controller named user.findOne
and call the same route via controller, it works perfectly fine.
Is that the right behavior by SailsJs or I'm doing some mistake anywhere?