mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-04 23:31:05 +01:00
Project type can't be updated.
This commit is contained in:
parent
67f2e2bed2
commit
c71d5f2994
@ -110,12 +110,11 @@ func (d *SqlDb) DeleteProject(projectID int) error {
|
|||||||
|
|
||||||
func (d *SqlDb) UpdateProject(project db.Project) error {
|
func (d *SqlDb) UpdateProject(project db.Project) error {
|
||||||
_, err := d.exec(
|
_, 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.Name,
|
||||||
project.Alert,
|
project.Alert,
|
||||||
project.AlertChat,
|
project.AlertChat,
|
||||||
project.MaxParallelTasks,
|
project.MaxParallelTasks,
|
||||||
project.Type,
|
|
||||||
project.ID)
|
project.ID)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user