Update Constants.ts

This commit is contained in:
Adhiraj Singh
2021-01-05 17:44:35 +05:30
parent 0565444999
commit 2129c87852

View File

@@ -55,8 +55,8 @@ export class BaileysError extends Error {
}
}
}
export const TimedOutError = (stack?: string) => new BaileysError ('timed out', { status: 408 })
export const CancelledError = (stack?: string) => new BaileysError ('cancelled', { status: 500 })
export const TimedOutError = (stack?: string) => new BaileysError ('timed out', { status: 408 }, stack)
export const CancelledError = (stack?: string) => new BaileysError ('cancelled', { status: 500 }, stack)
export interface WAQuery {
json: any[] | WANode