When a resource is duplicated, the createdAt and updatedAt timestamps should reflect the time of duplication. However, they are currently copying the original resource's timestamps, leading to inaccurate timestamps. Implement a mechanism to update the createdAt and updatedAt timestamps whenever a resource is duplicated.
Current Result:
Expected Result:
The timestamps accurately represent the creation and last update times of the duplicated resource.
Fix incorrect timestamps on duplicated resources
When a resource is duplicated, the
createdAt
andupdatedAt
timestamps should reflect the time of duplication. However, they are currently copying the original resource's timestamps, leading to inaccurate timestamps. Implement a mechanism to update thecreatedAt
andupdatedAt
timestamps whenever a resource is duplicated.Current Result:
Expected Result: The timestamps accurately represent the creation and last update times of the duplicated resource.