mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
parent
6eb4795515
commit
fd4095b37f
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ export default async (endpoint: string, user: User | null | undefined, token: Ac
|
|||
|
||||
// API invoking
|
||||
const before = performance.now();
|
||||
return await ep.exec(data, user, token, ctx!.file).catch((e: Error) => {
|
||||
return await ep.exec(data, user, token, ctx?.file).catch((e: Error) => {
|
||||
if (e instanceof ApiError) {
|
||||
throw e;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue