feat: add login by invoice code
parent
7137b98043
commit
ba7b81c320
|
@ -34,9 +34,7 @@ export class TicketDataService extends BaseDataService<QueueTicket> {
|
||||||
async loginQueue(id: string): Promise<QueueOrder> {
|
async loginQueue(id: string): Promise<QueueOrder> {
|
||||||
return this.order.findOneOrFail({
|
return this.order.findOneOrFail({
|
||||||
relations: ['tickets'],
|
relations: ['tickets'],
|
||||||
where: {
|
where: [{ transaction_id: id }, { code: id }],
|
||||||
transaction_id: id,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue