mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
test(server): update page default role with non-exists workspace (#10012)
This commit is contained in:
@@ -352,7 +352,7 @@ export const USER_FRIENDLY_ERRORS = {
|
||||
|
||||
// Workspace & Userspace & Doc & Sync errors
|
||||
workspace_permission_not_found: {
|
||||
type: 'internal_server_error',
|
||||
type: 'resource_not_found',
|
||||
args: { spaceId: 'string' },
|
||||
message: ({ spaceId }) => `Space ${spaceId} permission not found.`,
|
||||
},
|
||||
|
||||
@@ -197,7 +197,7 @@ class WorkspacePermissionNotFoundDataType {
|
||||
|
||||
export class WorkspacePermissionNotFound extends UserFriendlyError {
|
||||
constructor(args: WorkspacePermissionNotFoundDataType, message?: string | ((args: WorkspacePermissionNotFoundDataType) => string)) {
|
||||
super('internal_server_error', 'workspace_permission_not_found', message, args);
|
||||
super('resource_not_found', 'workspace_permission_not_found', message, args);
|
||||
}
|
||||
}
|
||||
@ObjectType()
|
||||
|
||||
Reference in New Issue
Block a user