mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(server): client version check (#9205)
Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
@@ -724,4 +724,15 @@ export const USER_FRIENDLY_ERRORS = {
|
||||
message: ({ limit }) =>
|
||||
`You cannot downgrade the workspace from team workspace because there are more than ${limit} members that are currently active.`,
|
||||
},
|
||||
|
||||
// version errors
|
||||
unsupported_client_version: {
|
||||
type: 'action_forbidden',
|
||||
args: {
|
||||
clientVersion: 'string',
|
||||
requiredVersion: 'string',
|
||||
},
|
||||
message: ({ clientVersion, requiredVersion }) =>
|
||||
`Unsupported client with version [${clientVersion}], required version is [${requiredVersion}].`,
|
||||
},
|
||||
} satisfies Record<string, UserFriendlyErrorOptions>;
|
||||
|
||||
Reference in New Issue
Block a user