fix(be): sql query for schedule updating

This commit is contained in:
Denis Gukov 2022-01-31 18:04:47 +05:00
parent 9c5c155f99
commit 46a9b5103c

View File

@ -39,7 +39,7 @@ func (d *SqlDb) UpdateSchedule(schedule db.Schedule) error {
_, err := d.exec("update project__schedule set "+
"cron_format=?, "+
"repository_id=?, "+
"last_commit_hash = NULL ",
"last_commit_hash = NULL "+
"where project_id=? and id=?",
schedule.CronFormat,
schedule.RepositoryID,