@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
13 lines • 539 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSuccessAction = void 0;
const assign_1 = __importDefault(require("lodash/assign"));
const getSuccessAction = (type) => ({ tx_id, result, args }) => assign_1.default({}, {
type,
payload: { tx_id, result, args },
});
exports.getSuccessAction = getSuccessAction;
//# sourceMappingURL=getSuccessAction.js.map