|
|
@@ -960,7 +960,7 @@ export class TaskService implements OnModuleInit {
|
|
|
tasks.push(...cuttingTasks)
|
|
|
}
|
|
|
if (tasks.length === 0) return
|
|
|
- tasks = tasks.sort((a, b) => Math.random() - Math.random())
|
|
|
+ tasks = tasks.sort(() => Math.random() - 0.5)
|
|
|
const devices = await this.deviceService.findAllAvailableDevices()
|
|
|
if (devices.length === 0) return
|
|
|
const countryMapping: { [key: string]: string[] } = JSON.parse(
|