From 296901c592ce5a8f300c805548ddd17b4aaeb5ae Mon Sep 17 00:00:00 2001 From: tzwang Date: Wed, 22 May 2024 11:51:46 +0800 Subject: [PATCH] fix LOG bugs Former-commit-id: 15e2a7f765b3fb6a54f024ef0af127c7503693f4 --- api/internal/logic/core/pagelisttasklogic.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/internal/logic/core/pagelisttasklogic.go b/api/internal/logic/core/pagelisttasklogic.go index c7be973b..108b3f78 100644 --- a/api/internal/logic/core/pagelisttasklogic.go +++ b/api/internal/logic/core/pagelisttasklogic.go @@ -120,6 +120,7 @@ func (l *PageListTaskLogic) updateTaskStatus(tasklist []*types.TaskModel, ch cha tx = l.svcCtx.DbEngin.Model(task).Table("task").Where("deleted_at is null").Updates(task) if tx.Error != nil { logx.Errorf(tx.Error.Error()) + ch <- struct{}{} return } ch <- struct{}{} @@ -138,6 +139,7 @@ func (l *PageListTaskLogic) updateTaskStatus(tasklist []*types.TaskModel, ch cha tx = l.svcCtx.DbEngin.Model(task).Table("task").Where("deleted_at is null").Updates(task) if tx.Error != nil { logx.Errorf(tx.Error.Error()) + ch <- struct{}{} return } ch <- struct{}{}