mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-13 00:10:58 +02:00
12 lines
276 B
JavaScript
12 lines
276 B
JavaScript
function isCommandFailed(command) {
|
|
if (!command) {
|
|
return false;
|
|
}
|
|
|
|
return command.status === 'failed' ||
|
|
command.status === 'aborted' ||
|
|
command.status === 'cancelled' ||
|
|
command.status === 'orphaned';
|
|
}
|
|
|
|
export default isCommandFailed;
|