mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 21:54:24 +00:00
fix: reset createdAt field when duplicating entry (#21991)
* fix: reset createdAt field when duplicating entry * fix: reset updatedAt timestamp on clone
This commit is contained in:
parent
6a883bcf3f
commit
c4c2822dff
@ -184,7 +184,7 @@ export const createContentTypeRepository: RepositoryFactoryMethod = (
|
||||
entriesToClone,
|
||||
async.pipe(
|
||||
validateParams,
|
||||
omit('id'),
|
||||
omit(['id', 'createdAt', 'updatedAt']),
|
||||
// assign new documentId
|
||||
assoc('documentId', createDocumentId()),
|
||||
// Merge new data into it
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user