UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

13 lines 516 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getErrorAction = void 0; const assign_1 = __importDefault(require("lodash/assign")); const getErrorAction = (type) => ({ tx_id, error, }) => assign_1.default({}, { type, payload: { tx_id, error }, }); exports.getErrorAction = getErrorAction; //# sourceMappingURL=getErrorAction.js.map