fix(server): fallback to viewer if no seat found (#4748)
This commit is contained in:
committed by
GitHub
parent
c16912d6ae
commit
5ff030224b
@@ -392,7 +392,7 @@ describe('Workspaces GQL CRUD', () => {
|
||||
})({
|
||||
workspaceId: workspace.id,
|
||||
userId: memberEditor.id,
|
||||
type: 'editor',
|
||||
type: WorkspaceSeatType.Editor,
|
||||
assignedByUserId: admin.id
|
||||
})
|
||||
// Assign the same user editor to another workspace
|
||||
@@ -404,7 +404,7 @@ describe('Workspaces GQL CRUD', () => {
|
||||
})({
|
||||
workspaceId: otherWorkspace.id,
|
||||
userId: memberEditor.id,
|
||||
type: 'editor',
|
||||
type: WorkspaceSeatType.Editor,
|
||||
assignedByUserId: admin.id
|
||||
})
|
||||
|
||||
@@ -422,14 +422,14 @@ describe('Workspaces GQL CRUD', () => {
|
||||
})({
|
||||
workspaceId: workspace.id,
|
||||
userId: memberViewer.id,
|
||||
type: 'viewer',
|
||||
type: WorkspaceSeatType.Viewer,
|
||||
assignedByUserId: admin.id
|
||||
})
|
||||
|
||||
const res = await session.execute(GetWorkspaceTeamDocument, {
|
||||
workspaceId: workspace.id,
|
||||
filter: {
|
||||
seatType: 'editor'
|
||||
seatType: WorkspaceSeatType.Editor
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user