mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(server): websocket error backward compatibility (#7346)
This commit is contained in:
@@ -76,7 +76,7 @@ export class UserFriendlyError extends Error {
|
||||
this.data = args;
|
||||
}
|
||||
|
||||
json() {
|
||||
toJSON() {
|
||||
return {
|
||||
status: this.status,
|
||||
code: STATUS_CODES[this.status] ?? 'BAD REQUEST',
|
||||
|
||||
Reference in New Issue
Block a user