You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tdarr_Plugins/FlowPlugins/CommunityFlowPlugins/tools/failFlow/1.0.0/index.js

32 lines
1.0 KiB

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.plugin = exports.details = void 0;
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
var details = function () { return ({
name: 'Fail Flow',
description: 'Force the flow to fail and be move to the error table',
style: {
borderColor: 'red',
},
tags: '',
isStartPlugin: false,
sidebarPosition: -1,
icon: 'faExclamationTriangle',
inputs: [],
outputs: [],
}); };
exports.details = details;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var plugin = function (args) {
var lib = require('../../../../../methods/lib')();
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
args.inputs = lib.loadDefaultValues(args.inputs, details);
throw new Error('Forcing flow to fail!');
return {
outputFileObj: args.inputFileObj,
outputNumber: 1,
variables: args.variables,
};
};
exports.plugin = plugin;