mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:49:38 +00:00
fix linter
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ const loadApiToken = async (): Promise<ApiTokenResponse> => {
|
||||
}
|
||||
|
||||
return apiToken;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return { token: '' };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user