Compare commits
No commits in common. "05473fce3d3b27b29b67487159881f5b35ded6e2" and "a8b3f67d1b739f4a11052e7dd1d1606fb72027cd" have entirely different histories.
05473fce3d
...
a8b3f67d1b
|
@ -144,6 +144,7 @@ export class GenerateQueueManager {
|
|||
qty: data.qty,
|
||||
item_id: queue.id,
|
||||
vip: isVip,
|
||||
showTime: false,
|
||||
};
|
||||
const registerQueueManager = new RegisterQueueManager(
|
||||
this.bucketService,
|
||||
|
@ -153,9 +154,6 @@ export class GenerateQueueManager {
|
|||
registerQueueManager.setService(this.queueService, TABLE_NAME.QUEUE);
|
||||
await registerQueueManager.execute();
|
||||
|
||||
const result = await registerQueueManager.getResult();
|
||||
result.time = null;
|
||||
|
||||
return result;
|
||||
return registerQueueManager.getResult();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ export class RegisterQueueManager extends BaseCreateManager<QueueModel> {
|
|||
|
||||
async beforeProcess(): Promise<void> {
|
||||
const vip = this.data.vip ?? false;
|
||||
const showTime = this.data.showTime ?? true;
|
||||
const item = await this.getItemMaster();
|
||||
this.currentItemMaster = item;
|
||||
const [, end] = await this.queueTime(item.item_queue_id);
|
||||
|
@ -56,7 +57,7 @@ export class RegisterQueueManager extends BaseCreateManager<QueueModel> {
|
|||
|
||||
Object.assign(this.data, {
|
||||
status: STATUS.WAITING,
|
||||
time: end,
|
||||
time: showTime ? end : undefined,
|
||||
item_queue_id: item.item_queue_id,
|
||||
vip,
|
||||
code,
|
||||
|
|
Loading…
Reference in New Issue