Skip to content

Commit

Permalink
feat: sync ticket to es
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Jul 23, 2024
1 parent f06037d commit c3dad88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions next/api/src/ticket/TicketUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ export class TicketUpdater {
);
this.assignRelatedInstance(ticket);

console.log("addSyncJob", ticket.id)
await searchTicketService.addSyncJob([ticket.id]);

this.saveOpsLogs(operator).catch((error) => {
// TODO: Sentry
console.error('[ERROR] Create OpsLog failed, error:', error);
Expand Down Expand Up @@ -349,8 +352,6 @@ export class TicketUpdater {
}


console.log("addSyncJob", ticket.id)
await searchTicketService.addSyncJob([ticket.id]);
if (this.data.status && ticket.isClosed()) {
durationMetricsService.createCreateMetricsJob({ ticketId: ticket.id });
}
Expand Down

0 comments on commit c3dad88

Please sign in to comment.