Skip to content

Commit 7c6456b

Browse files
authored
Merge pull request #478 from chaitin/feat-project-list
feat: 项目列表只列出运行中的任务
2 parents ccd4f2f + 0acf697 commit 7c6456b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)