server: fix RefereceError (again...)
This commit is contained in:
parent
c282ed7683
commit
bd0c06e2d0
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export class ApiError extends Error {
|
|||
code = 'INTERNAL_ERROR';
|
||||
}
|
||||
|
||||
const { message, httpStatusCode } = errors[this.code];
|
||||
const { message, httpStatusCode } = errors[code];
|
||||
super(message);
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
|
|
Loading…
Reference in a new issue