.
This commit is contained in:
parent
5974576d28
commit
9d717cd7c5
@ -200,8 +200,9 @@ const generateService = (model, extraMethods = {}, options = defaultOptions) =>
|
||||
},
|
||||
|
||||
create: async (values, context) => {
|
||||
console.log('CREAAAAAAAAAAAAAAAAAAAAAAAAAATE44444');
|
||||
console.log(values);
|
||||
if (extraMethods.beforeCreate) {
|
||||
values = extraMethods.beforeCreate(values, context);
|
||||
}
|
||||
return await model.scope(context.scopes).create(values);
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user