fix linter

This commit is contained in:
Simon
2025-01-07 09:48:45 +07:00
parent 8ca943ca7b
commit 09ef342de7
18 changed files with 42 additions and 34 deletions

View File

@@ -3,7 +3,11 @@ import getApiUrl from '../../configuration/getApiUrl';
import getFetchCredentials from '../../configuration/getFetchCredentials';
import getCookie from '../../functions/getCookie';
const updateChannelOverwrites = async (channelId: string, configKey: string, configValue: any) => {
const updateChannelOverwrites = async (
channelId: string,
configKey: string,
configValue: string | boolean | number | null,
) => {
const apiUrl = getApiUrl();
const csrfCookie = getCookie('csrftoken');

View File

@@ -28,7 +28,7 @@ const loadApiToken = async (): Promise<ApiTokenResponse> => {
}
return apiToken;
} catch (e) {
} catch {
return { token: '' };
}
};