mirror of
https://github.com/unraid/api.git
synced 2026-02-18 14:08:29 -06:00
refactor: WebguiUnraidApiCommand response handling
This commit is contained in:
@@ -58,13 +58,13 @@ export const WebguiUnraidApiCommand = async (payload: WebguiUnraidApiCommandPayl
|
||||
})
|
||||
.post()
|
||||
.json((json) => {
|
||||
console.debug('👼 [WebguiUnraidApiCommand]', json);
|
||||
console.debug('[WebguiUnraidApiCommand]', json);
|
||||
return json;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(`[WebguiUnraidApiCommand] catch failed to execute unraid-api ${command} 😢`, error);
|
||||
console.error(`[WebguiUnraidApiCommand] catch failed to execute unraid-api ${command}`, error);
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(`[WebguiUnraidApiCommand] catch failed to execute unraid-api ${command} 😢`, error);
|
||||
console.error(`[WebguiUnraidApiCommand] catch failed to execute unraid-api ${command}`, error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user