backend: fix ApiError lints

This commit is contained in:
Norm 2022-09-17 23:57:52 -04:00 committed by Johann150
parent 78fd2ee38b
commit 26449d4944
Signed by untrusted user: Johann150
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 2 additions and 2 deletions

View File

@ -9,14 +9,14 @@ export class ApiError extends Error {
public info?: any;
constructor(
e?: E | null | undefined = {
e: E = {
message: 'Internal error occurred. Please contact us if the error persists.',
code: 'INTERNAL_ERROR',
id: '5d37dbcb-891e-41ca-a3d6-e690c97775ac',
kind: 'server',
httpStatusCode: 500,
},
info?: any | null | undefined,
info?: any | null,
) {
super(e.message);
this.message = e.message;