Skip to content

Commit

Permalink
feat(next/api): process PRE_FULFILLED tickets by time triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Feb 7, 2024
1 parent 7ae4568 commit 5f1fb4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion next/api/src/ticket/automation/time-trigger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ export class TimeTrigger {

function getOpenTickets(cursor?: string): Promise<Ticket[]> {
const query = Ticket.queryBuilder()
.where('status', '<', Ticket.Status.PRE_FULFILLED)
.where('status', 'in', [
Ticket.Status.NEW,
Ticket.Status.WAITING_CUSTOMER,
Ticket.Status.WAITING_CUSTOMER_SERVICE,
Ticket.Status.PRE_FULFILLED,
])
.orderBy('objectId', 'asc')
.limit(1000);
if (cursor) {
Expand Down

0 comments on commit 5f1fb4b

Please sign in to comment.