|
|
@@ -1400,7 +1400,7 @@ export class TaskService implements OnModuleInit {
|
|
|
if (res instanceof Array) {
|
|
|
const results = res as TaskResult[]
|
|
|
for (let result of results) {
|
|
|
- this.taskItemRepository.update(
|
|
|
+ await this.taskItemRepository.update(
|
|
|
{ id: result.id },
|
|
|
{
|
|
|
status: result.sent ? TaskItemStatus.SUCCESS : TaskItemStatus.FAIL,
|