@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
7 lines • 315 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHistory = void 0;
const lodash_1 = require("lodash");
const getHistory = (entities) => lodash_1.flatMap(lodash_1.values(entities), ({ events }) => events);
exports.getHistory = getHistory;
//# sourceMappingURL=getHistory.js.map