sourcefuse / sourcefuse/loopback4-microservice-catalog

modified_on date-time is not updating in update function

Open
#2,262 0 comments 0 reactions 0 assignees View on GitHub

@Sourav-kashyap is already working on this.

Since Aug 14, 2026.

  • #2596 by @Sourav-kashyap — open
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:

  1. hit any API to update data in a simple table (having no triggeres to update modified_on), having created_on , modified_on columns..
  2. 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
Image

But this was reverted in next commit :
https://github.com/sourcefuse/loopback4-microservice-catalog/commit/1307aa05de60b27ef8be129ed1a662fb3c1f53b6

Image Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.