Skip to content

Commit

Permalink
debug reply
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Aug 3, 2024
1 parent b204a92 commit dd8d073
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions next/api/src/service/search-ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ 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
2 changes: 0 additions & 2 deletions next/api/src/ticket/TicketUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,12 @@ export class TicketUpdater {
this.data.ACL = this.getCurrentACL();
}

console.log("updateTicket", this.ticket.id, this.ticket.status, JSON.stringify(this.data))
const ticket = await this.ticket.update(
this.data,
this.getModifyOptions(operator, options?.useMasterKey)
);
this.assignRelatedInstance(ticket);

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

this.saveOpsLogs(operator).catch((error) => {
Expand Down

0 comments on commit dd8d073

Please sign in to comment.