From de3a444b9a553dc8d04004ca88db2c6d71e30684 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Sun, 8 Dec 2024 15:44:15 -0500 Subject: [PATCH] fix create job insert query --- internal/store/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/store/db.go b/internal/store/db.go index 8b73541..2fd4c47 100644 --- a/internal/store/db.go +++ b/internal/store/db.go @@ -160,7 +160,7 @@ func (store *Store) CreateJob(job Job) error { } query := `INSERT INTO d2d_jobs (id, store, target, subpath, schedule, comment, next_run, last_run_upid, notification_mode, namespace) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);` + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);` _, err := store.Db.Exec(query, job.ID, job.Store, job.Target, job.Subpath, job.Schedule, job.Comment, job.NextRun, job.LastRunUpid, job.NotificationMode, job.Namespace) if err != nil { return fmt.Errorf("CreateJob: error inserting data to job table -> %w", err)