Closed lazyguru closed 1 month ago
@lazyguru Please assign this issue to me
@lazyguru Please review above PR
After investigating it, this function in the SlurFIlterService is the source of this error. ( Used in the sitecontroller for updating and creating the sites slur filter )
I dont know WHY this code would ever edit the updatedAt attribute? but the error wont show up if i comment out the usage in the edit site endpoint.
Additionally, the updated_at attribute wont get updated
Ahhh found out why. The @UpdatedTimestamp updates the attribute.
why updatable is false here? In SlurFilterService , we are updating regex attribute. Whenever a attribute is modified , the updatedAt should be updated right?
Because the ORM is allowed to update it, but the field itself should not be modifiable by code or user action (eg, the user should not be able to influence the value to be something other than the current timestamp)
Removing @UpdateTimeStamp for UpdatedAt attribute should work. Is this issue specific for SlurFilterService ?
Seeing this error in the logs: