refactor: use ctx in models

This commit is contained in:
Jason Song committed 2022-12-06 14:15:48 +08:00
1 parent c07d0c1768
commit 56368f3963
14 files changed
+87 -165

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ func notify(ctx context.Context, input *notifyInput) error {
log.Error("jobparser.Parse: %v", err)
continue
}
if err := actions_model.InsertRun(&run, jobs); err != nil {
if err := actions_model.InsertRun(ctx, &run, jobs); err != nil {
log.Error("InsertRun: %v", err)
continue
}