sourcefuse / sourcefuse/loopback4-microservice-catalog
modified_on date-time is not updating in update function
- Dominant language
- TypeScript
- Stars
- 297
- Forks
- 78
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Description
Describe the bug
modified_on date-time is not updating in update function. Updating correctly via save function, but not in update / updateAll / updateByID and so on..
To Reproduce
Steps to reproduce the behavior:
- hit any API to update data in a simple table (having no triggeres to update modified_on), having created_on , modified_on columns..
- see, modified_on value is not auto-updating.
Expected behavior
I want modified_on to be auto updated to the current date-time
Screenshots
Few work was dont for that
But this was reverted in next commit :
https://github.com/sourcefuse/loopback4-microservice-catalog/commit/1307aa05de60b27ef8be129ed1a662fb3c1f53b6
But not sure why reverted adding current dates in modified_on ? is this value to be updated from DATABASE Trigger ? Or from our APIs ?
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing how save updates modified_on with update, updateAll, and updateByID, then review the reverted commit linked in the report. Reproduce the behavior through an update API on a table with created_on and modified_on but no database trigger; done means modified_on receives the current date-time consistently for these update paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100