Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@sourceloop/core: CreatedOn and ModifiedOn columns should not be data driven #2158

Open
yeshamavani opened this issue Aug 30, 2024 · 0 comments · May be fixed by #2159
Open

@sourceloop/core: CreatedOn and ModifiedOn columns should not be data driven #2158

yeshamavani opened this issue Aug 30, 2024 · 0 comments · May be fixed by #2159

Comments

@yeshamavani
Copy link
Contributor

Describe the bug
CreatedOn and ModifiedOn columns should not be data driven
These values should always be a the current date and user should never be able to change its value based on input.

To Reproduce
Steps to reproduce the behavior:

  1. Hit any post API where the base model entity is UserModifiableEntity
  2. Pass the createdOn and modifiedOn date values as some backdated data
  3. Observe the entry in database
  4. Instead of current date the values will be one provided in input

Expected behavior
Should always be the current date time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant