UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

22 lines 912 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.commandDeleteByEntityIdCommitId = void 0; const command_1 = require("../store/command"); const _1 = require("."); const commandDeleteByEntityIdCommitId = (entityName, isPrivateData, { store, logger, channelName, connectionProfile, wallet }) => _1.dispatcher(({ tx_id, args: { id, commitId } }) => command_1.action.deleteByEntityIdCommitId({ channelName, connectionProfile, wallet, tx_id, args: { entityName, id, commitId, isPrivateData }, }), { name: 'commandDeleteByEntityIdCommitId', store, slice: 'write', SuccessAction: command_1.action.DELETE_SUCCESS, ErrorAction: command_1.action.DELETE_ERROR, logger, typeGuard: _1.isFabricResponse, }); exports.commandDeleteByEntityIdCommitId = commandDeleteByEntityIdCommitId; //# sourceMappingURL=commandDeleteByEntityIdCommitId.js.map