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

View file

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