feat(workspaces): workspace member role resolvers (#2540)
* feat(workspaces): update/delete workspace role resolvers * chore(workspaces): gql tests for role changes * fix(workspaces): test syntax oops * fix(workspaces): got it twisted * fix(workspaces): simplify api surface, better return types * fix(workspaces): correct role type usage, improve tests * fix(workspaces): authorize in resolver * fix(workspaces): correct usage of authorizeResolver
This commit is contained in:
@@ -62,17 +62,6 @@ const config: SpeckleModuleMocksConfig = FF_WORKSPACES_MODULE_ENABLED
|
||||
throw new Error('Fake update role error')
|
||||
}
|
||||
|
||||
return getMockRef('Workspace', {
|
||||
id: args.input.workspaceId
|
||||
})
|
||||
},
|
||||
deleteRole: (_parent, args) => {
|
||||
const val = faker.datatype.boolean()
|
||||
|
||||
if (val) {
|
||||
throw new Error('Fake delete role error')
|
||||
}
|
||||
|
||||
return getMockRef('Workspace', {
|
||||
id: args.input.workspaceId
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user