Skip to content

Commit

Permalink
use space type from req (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar authored Oct 6, 2021
1 parent c40fcc8 commit 67f39be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/space-type-from-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Use space Type from request

In the decomposedfs we now use the space type from the request when creating a new space.

https://github.com/cs3org/reva/issues/2134
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (fs *Decomposedfs) CreateStorageSpace(ctx context.Context, req *provider.Cr
return nil, err
}

err = fs.createStorageSpace(ctx, "project", n.ID)
err = fs.createStorageSpace(ctx, req.Type, n.ID)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 67f39be

Please sign in to comment.