Skip to content

Commit e10964e

Browse files
committed
简化依赖任务检查逻辑
1 parent 04f9477 commit e10964e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

examples/starters/basic-script/src/projects.hook.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,7 @@ const hooks: ObjectHookDefinition<Project> = {
278278

279279
// 2. Check for dependent tasks
280280
/*
281-
const taskCount = await api.count('tasks', {
282-
filters: [['project_id', '=', id]]
283-
});
281+
const taskCount = await api.count('tasks', [['project_id', '=', id]]);
284282
285283
if (taskCount > 0) {
286284
throw new Error(

0 commit comments

Comments
 (0)