server: fix RefereceError (again...)

This commit is contained in:
Johann150 2022-10-30 17:46:44 +01:00
parent c282ed7683
commit bd0c06e2d0
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -13,7 +13,7 @@ export class ApiError extends Error {
code = 'INTERNAL_ERROR'; code = 'INTERNAL_ERROR';
} }
const { message, httpStatusCode } = errors[this.code]; const { message, httpStatusCode } = errors[code];
super(message); super(message);
this.code = code; this.code = code;
this.info = info; this.info = info;