Skip to content

Commit 0acf697

Browse files
committed
feat: 项目列表只列出运行中的任务
1 parent ccd4f2f commit 0acf697

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/biz/project/repo/project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func (r *ProjectRepo) List(ctx context.Context, uid uuid.UUID, cursor domain.Cur
9191
Where(projecttask.HasTaskWith(task.And(
9292
task.DeletedAtIsNil(),
9393
task.UserID(uid),
94+
task.StatusIn(consts.TaskStatusPending, consts.TaskStatusProcessing),
9495
))).
9596
Order(projecttask.ByCreatedAt(sql.OrderDesc()))
9697
}).

0 commit comments

Comments
 (0)