UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

15 lines 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.queryGetCommitByEntityId = void 0; const query_1 = require("../store/query"); const dispatcher_1 = require("./dispatcher"); const queryGetCommitByEntityId = (entityName, { store, logger }) => dispatcher_1.dispatcher(({ tx_id, args: { id } }) => query_1.action.queryByEntityId({ tx_id, args: { id, entityName } }), { name: 'getCommitByid', store, slice: 'query', SuccessAction: query_1.action.QUERY_SUCCESS, ErrorAction: query_1.action.QUERY_ERROR, logger, }); exports.queryGetCommitByEntityId = queryGetCommitByEntityId; //# sourceMappingURL=queryGetCommitByEntityId.js.map