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