fix: request ticket item

pull/115/head
shancheas 2024-11-13 18:17:53 +07:00
parent 9805b9903a
commit 94696e765d
1 changed files with 11 additions and 4 deletions

View File

@ -50,10 +50,17 @@ export class QueueService extends BaseDataService<QueueModel> {
async getTicketItems(ticket_id: string, item_id: string) { async getTicketItems(ticket_id: string, item_id: string) {
return this.item.findOneOrFail({ return this.item.findOneOrFail({
where: { relations: ['item'],
where: [
{
ticket_id, ticket_id,
item_id, item_id,
}, },
{
ticket_id,
item: { item_queue_id: item_id },
},
],
}); });
} }