diff --git a/src/services/misskey.ts b/src/services/misskey.ts index 64cbd93..71afa3b 100644 --- a/src/services/misskey.ts +++ b/src/services/misskey.ts @@ -15,7 +15,7 @@ export const api = >(host: string, endpoint: string, return axios.post(`https://${host}/api/${endpoint}`, a).then(res => res.data); }; -export const apiAvailable = async (host: string, i: string) : Promise => { +export const apiAvailable = async (host: string, i: string): Promise => { try { const res = await api(host, 'i', {}, i); return !res.error;