forked from mirror/misskey
parent
74cef67e9f
commit
fc9a6a805f
@ -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 New Issue
Block a user