sublinks / sublinks-api

MIT License
74 stars 18 forks source link

enable updates to updatedAt field #376

Closed rohit-satya closed 6 months ago

rohit-satya commented 6 months ago

Close https://github.com/sublinks/sublinks-api/issues/373

rohit-satya commented 6 months ago

Please share complete StackTrace

lazyguru commented 6 months ago

I don't have a stack trace. All I have is the log message I posted in the issue. You should be able to reproduce this by running the docker setup. When the seeder triggers and starts creating entities you will see the message appear spread out through the calls. It seems like something triggers an update to the slur filter when a user or post is created (or comment? I didn't actually look to see what was being done at the time. Will do better on that next time I open an issue based on logs). I would expect the slur filter to only be updated when an admin takes action on it in the UI.

Pdzly commented 6 months ago

@rohit-satya see #383

It was an issue with the switching over to postgresql, as the @UpdatedTimestamp always updates the attribute but it shouldnt? and it needs to be nullable.