-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
(async function() {
try {
// update Store
if (paramStore.id) {
const finded = await Store.findOne(paramStore.id);
_.assign(finded, paramStore);
finded.save();
}else {
// add Store
await Store.create(paramStore);
}
return res.ok();
} catch (err) {
sails.log.error(err);
sails.log.error(err.Errors);
return res.serverError(err);
}
})();
the err.Errors
is undefined.
Metadata
Metadata
Assignees
Labels
No labels