We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f1660 commit 06d418bCopy full SHA for 06d418b
models/users.js
@@ -1948,7 +1948,9 @@ Meteor.methods({
1948
user.toggleDesktopHandles(user.hasShowDesktopDragHandles());
1949
},
1950
// Spaces: create a new space under parentId (or root when null)
1951
- createWorkspace({ parentId = null, name }) {
+ createWorkspace(params) {
1952
+ check(params, Object);
1953
+ const { parentId = null, name } = params;
1954
check(parentId, Match.OneOf(String, null));
1955
check(name, String);
1956
if (!this.userId) throw new Meteor.Error('not-logged-in');
0 commit comments