Skip to content

Commit 510e68a

Browse files
fiftinCopilot
andauthored
Update db/sql/task.go
Co-authored-by: Copilot <[email protected]>
1 parent de4aa27 commit 510e68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/sql/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (d *SqlDb) CreateTaskOutput(output db.TaskOutput) (db.TaskOutput, error) {
232232
func (d *SqlDb) getTasks(projectID int, templateID *int, taskIDs []int, params db.RetrieveQueryParams, tasks *[]db.TaskWithTpl) (err error) {
233233

234234
if taskIDs != nil && len(taskIDs) == 0 {
235-
tasks = &[]db.TaskWithTpl{}
235+
*tasks = []db.TaskWithTpl{}
236236
return nil
237237
}
238238

0 commit comments

Comments
 (0)