update last_updated_at when update final_entities
Signed-off-by: iris <hellocomplex007@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user