We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94fd9c commit 0f87d5bCopy full SHA for 0f87d5b
domain/space/endpoint.go
@@ -39,6 +39,7 @@ import (
39
"github.com/documize/community/model/page"
40
"github.com/documize/community/model/permission"
41
"github.com/documize/community/model/space"
42
+ wf "github.com/documize/community/model/workflow"
43
uuid "github.com/nu7hatch/gouuid"
44
)
45
@@ -97,9 +98,9 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
97
98
sp.Name = model.Name
99
sp.RefID = uniqueid.Generate()
100
sp.OrgID = ctx.OrgID
- sp.Type = space.ScopePrivate
101
sp.UserID = ctx.UserID
102
sp.Type = space.ScopePrivate
103
+ sp.Lifecycle = wf.LifecycleLive
104
105
err = h.Store.Space.Add(ctx, sp)
106
if err != nil {
0 commit comments