|
|
@@ -22,6 +22,9 @@ export class TaskController {
|
|
|
} else if (!req.user.roles.includes('admin')) {
|
|
|
;(page.search as any).where.userId = (req.user.id)
|
|
|
}
|
|
|
+ if ((page.search as any).where.status === 'run') {
|
|
|
+ (page.search as any).where.status = In(['pending', 'queued', 'cutting'])
|
|
|
+ }
|
|
|
return await this.taskService.findAllTask(page)
|
|
|
}
|
|
|
|