fix: ストリーミングからのAPIリクエストが出来ないのを修正 (#8244)

* Update call.ts

* あれ
This commit is contained in:
MeiMei 2022-02-02 20:04:52 +09:00 committed by GitHub
parent 6eb4795515
commit fd4095b37f

View file

@ -90,7 +90,7 @@ export default async (endpoint: string, user: User | null | undefined, token: Ac
// API invoking // API invoking
const before = performance.now(); 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) { if (e instanceof ApiError) {
throw e; throw e;
} else { } else {