Start a new topic

Updating user object in Business logic

Hi all, please tell me what am I doing wrong.

I want to save/update variable "currentJobs" on user object in Business logic, but with this code isn't happening.



user.save(currentJobs, {

success: function(model, response, options) {

logger.info(response);

}

});

To save an entity in Business Logic, you need to execute the collectionAccess.save method as follows:



modules.collectionAccess.collection('user').save(entity, function(err, result) {

if (err) {

logger.info(err);

} else {

logger.info(result);

}

});
I can't find one example of Business logic save/update methods just fetch. Is it even possible?
Login or Signup to post a comment