add project groups to frontend.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-18 22:11:16 +02:00
parent ea01af1091
commit 83eb9862fc
29 changed files with 524 additions and 64 deletions
+4
View File
@@ -62,6 +62,10 @@ func Project(g *gin.RouterGroup, db database.Database) {
project.UserID = auth.UserID(c)
project.CreatedTime = time.Now().UTC()
if project.GroupID != nil && *project.GroupID == "" {
project.GroupID = nil
}
err = db.Projects().Insert(c.Request.Context(), project)
if err != nil {
return nil, err