Skip to content

Commit

Permalink
chore: sync to es add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Jul 30, 2024
1 parent 5112629 commit 8ee0065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next/api/src/service/search-ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export class SearchTicketService {
this.createSearchDocument(ticket, fieldValueByTicketId[ticket.id])
);

tickets.forEach((ticket) => {
console.log('syncTickets', ticket.id, ticket.status, ticket.updatedAt)
})

await this.esClient.bulk({
body: docs.flatMap((doc) => [
{
Expand Down

0 comments on commit 8ee0065

Please sign in to comment.