ita-social-projects / SpaceToStudy-BackEnd

MIT License
12 stars 5 forks source link

(SP: 0.5) Fix incorrect timestamps on duplicated resources #889

Closed Olenka-Hryk closed 2 weeks ago

Olenka-Hryk commented 3 weeks ago

Fix incorrect timestamps on duplicated resources

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:

database fix

Expected Result: The timestamps accurately represent the creation and last update times of the duplicated resource.