Skip to content

Commit

Permalink
feat(next/api): print sync to es job log
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Jul 22, 2024
1 parent e523edc commit f06037d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions next/api/src/service/search-ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,6 @@ export class SearchTicketService {
.source(false)
.toJSON();

console.log('[Search Ticket]: Query:');
console.dir(body, { depth: 10 });

const res = await this.esClient.search({
index: this.indexName,
body,
Expand Down
2 changes: 2 additions & 0 deletions next/api/src/ticket/TicketUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ 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 f06037d

Please sign in to comment.