Project type can't be updated.

This commit is contained in:
Brian Zoetewey 2024-11-25 10:32:50 -05:00
parent 67f2e2bed2
commit c71d5f2994

View File

@ -110,12 +110,11 @@ func (d *SqlDb) DeleteProject(projectID int) error {
func (d *SqlDb) UpdateProject(project db.Project) error {
_, err := d.exec(
"update project set name=?, alert=?, alert_chat=?, max_parallel_tasks=?, type=? where id=?",
"update project set name=?, alert=?, alert_chat=?, max_parallel_tasks=? where id=?",
project.Name,
project.Alert,
project.AlertChat,
project.MaxParallelTasks,
project.Type,
project.ID)
return err
}