UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

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