|
@@ -861,6 +861,10 @@ export class TaskService implements OnModuleInit {
|
|
|
taskItems.map((i) => i.id),
|
|
taskItems.map((i) => i.id),
|
|
|
TaskItemStatus.PENDING
|
|
TaskItemStatus.PENDING
|
|
|
)
|
|
)
|
|
|
|
|
+ await this.deviceService.updateDevices(
|
|
|
|
|
+ devices.map((d) => d.id),
|
|
|
|
|
+ { busy: true }
|
|
|
|
|
+ )
|
|
|
Promise.all(
|
|
Promise.all(
|
|
|
devices.map(async (device, i) => {
|
|
devices.map(async (device, i) => {
|
|
|
const items = taskItems.slice(i * 5, i * 5 + 5)
|
|
const items = taskItems.slice(i * 5, i * 5 + 5)
|