mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
chore: lint auto fixes
This commit is contained in:
@@ -50,4 +50,4 @@ export const keyLatest = async (payload: KeyLatestPayload) => await KeyServer
|
||||
export const getOsReleaseBySha256 = async (sha256: string): Release => await KeyServer
|
||||
.url(`/versions/sha256/${sha256}`)
|
||||
.get()
|
||||
.json();
|
||||
.json();
|
||||
|
||||
@@ -68,14 +68,14 @@ export const WebguiUnraidApiCommand = async (payload: WebguiUnraidApiCommandPayl
|
||||
export interface NotifyPostParameters {
|
||||
cmd: 'init' | 'smtp-init' | 'cron-init' | 'add' | 'get' | 'hide' | 'archive';
|
||||
csrf_token: string;
|
||||
e?: string; // 'add' command option
|
||||
s?: string; // 'add' command option
|
||||
d?: string; // 'add' command option
|
||||
i?: string; // 'add' command option
|
||||
m?: string; // 'add' command option
|
||||
x?: string; // 'add' command option
|
||||
t?: string; // 'add' command option
|
||||
file?: string; // 'hide' and 'archive' command option
|
||||
e?: string; // 'add' command option
|
||||
s?: string; // 'add' command option
|
||||
d?: string; // 'add' command option
|
||||
i?: string; // 'add' command option
|
||||
m?: string; // 'add' command option
|
||||
x?: string; // 'add' command option
|
||||
t?: string; // 'add' command option
|
||||
file?: string; // 'hide' and 'archive' command option
|
||||
}
|
||||
export const WebguiNotify = async (payload: NotifyPostParameters) => {
|
||||
console.debug('[WebguiNotify] payload', payload);
|
||||
@@ -91,4 +91,4 @@ export const WebguiNotify = async (payload: NotifyPostParameters) => {
|
||||
console.error('[WebguiNotify] catch failed to execute Notify', error, payload);
|
||||
return error;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user