mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-25 13:48:18 +08:00
feat: 项目列表只列出运行中的任务
This commit is contained in:
1 parent
ccd4f2fce3
commit
0acf697e8a
1 file changed
+1
@@ -91,6 +91,7 @@ func (r *ProjectRepo) List(ctx context.Context, uid uuid.UUID, cursor domain.Cur
|
||||
Where(projecttask.HasTaskWith(task.And(
|
||||
task.DeletedAtIsNil(),
|
||||
task.UserID(uid),
|
||||
task.StatusIn(consts.TaskStatusPending, consts.TaskStatusProcessing),
|
||||
))).
|
||||
Order(projecttask.ByCreatedAt(sql.OrderDesc()))
|
||||
}).
|
||||
|
||||
Reference in new issue
Block a user