fix: omit using regular lodash

This commit is contained in:
Marc-Roig 2023-07-19 14:05:21 +02:00
parent 98c9b6d6c1
commit 930cde00dd
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -283,7 +283,7 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
const validData = await entityValidator.validateEntityUpdate(
model,
_.omit('id', data), // Omit the id, the cloned entity id will be generated by the database
_.omit(data, ['id']), // Omit the id, the cloned entity id will be generated by the database
{ isDraft },
entityToClone
);