mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(server): convert error type to lower case (#10301)
This commit is contained in:
@@ -104,7 +104,7 @@ export class UserFriendlyError extends Error {
|
||||
|
||||
static fromUserFriendlyErrorJSON(body: UserFriendlyError) {
|
||||
return new UserFriendlyError(
|
||||
body.type as UserFriendlyErrorBaseType,
|
||||
body.type.toLowerCase() as UserFriendlyErrorBaseType,
|
||||
body.name.toLowerCase() as keyof typeof USER_FRIENDLY_ERRORS,
|
||||
body.message,
|
||||
body.data
|
||||
|
||||
Reference in New Issue
Block a user