Skip to content

Commit 0f45147

Browse files
cassiozareckKN4CK3R
andcommitted
Update models/actions/run.go unwrap array
Co-authored-by: KN4CK3R <[email protected]>
1 parent 2d0d4a1 commit 0f45147

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

models/actions/run.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,7 @@ func InsertRun(ctx context.Context, run *ActionRun, jobs []*jobparser.SingleWork
306306
}
307307

308308
func DeleteRunJobs(ctx context.Context, jobs []*ActionRunJob) error {
309-
for _, job := range jobs {
310-
if err := db.DeleteBeans(ctx, job); err != nil {
311-
return err
312-
}
313-
}
314-
return nil
309+
return db.DeleteBeans(ctx, jobs...)
315310
}
316311

317312
func DeleteRun(ctx context.Context, run *ActionRun) error {

0 commit comments

Comments
 (0)