update last_updated_at when update final_entities

Signed-off-by: iris <hellocomplex007@gmail.com>
This commit is contained in:
iris
2022-12-01 17:08:36 +08:00
parent facbae6fef
commit 253acc8b43
2 changed files with 2 additions and 0 deletions
@@ -66,6 +66,7 @@ export type DbFinalEntitiesRow = {
hash: string;
stitch_ticket: string;
final_entity?: string;
last_updated_at?: string | Date;
};
export type DbSearchRow = {
@@ -207,6 +207,7 @@ export class Stitcher {
.update({
final_entity: JSON.stringify(entity),
hash,
last_updated_at: this.database.fn.now(),
})
.where('entity_id', entityId)
.where('stitch_ticket', ticket)