- oversight with sql code which doesn't actually add a project
This commit is contained in:
Matej Kramny 2016-04-30 15:38:01 +02:00
parent b2eb39d605
commit 1502ec3935

View File

@ -38,7 +38,7 @@ func AddProject(c *gin.Context) {
panic(err)
}
if _, err := database.Mysql.Exec("insert into project__user set project_id=?, user_id=?, admin=1, created=NOW()", body.ID, user.ID); err != nil {
if _, err := database.Mysql.Exec("insert into project__user set project_id=?, user_id=?, admin=1", body.ID, user.ID); err != nil {
panic(err)
}