actionhero
Version:
The reusable, scalable, and quick node.js API server for stateless and stateful applications
19 lines (18 loc) • 644 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RecursiveAction = void 0;
const index_1 = require("./../index");
class RecursiveAction extends index_1.Action {
constructor() {
super(...arguments);
this.name = "recursiveAction";
this.description = "I am an action that runs another action";
this.outputExample = {};
}
async run() {
const localResponse = { local: true };
const actionResponse = await index_1.action.run("randomNumber");
return Object.assign(actionResponse, localResponse);
}
}
exports.RecursiveAction = RecursiveAction;