You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/api/services/support-ticket-service.ts
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -303,6 +303,40 @@ export default class SupportTicketService {
303
303
}
304
304
}
305
305
306
+
/**
307
+
* This method can be called after any update to a ticket to ensure the search index has the most up-to-date information.
308
+
* This way, we don't have to wait for the next full sync to have accurate search results after a ticket is updated.
309
+
* Essentially does the same thing as syncWithSearchIndex but for a single ticket, and is optimized to only reindex that one ticket instead of all tickets.
310
+
* Will swallow and log any errors instead of throwing, since this is meant to be a best-effort method to keep the search index up-to-date.
311
+
* @param ticketID the ID of the ticket to upsert to the search index
ticket: ticketService._removeAccessKeysFromResponse(ticket,true),// Allow guest access key to be returned here for attachments to be immediately uploaded
0 commit comments