fix: request ticket item
parent
9805b9903a
commit
94696e765d
|
@ -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'],
|
||||||
ticket_id,
|
where: [
|
||||||
item_id,
|
{
|
||||||
},
|
ticket_id,
|
||||||
|
item_id,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ticket_id,
|
||||||
|
item: { item_queue_id: item_id },
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue