Skip to content

Commit

Permalink
fix create job insert query
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Dec 8, 2024
1 parent 990d735 commit de3a444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de3a444

Please sign in to comment.