1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 15:21:46 +09:00

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

* Update call.ts

* あれ
This commit is contained in:
MeiMei 2022-02-02 20:04:52 +09:00 committed by GitHub
parent 74cef67e9f
commit fc9a6a805f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {