nestjs-transaction
Version:
A library that extracts and provides only some of the functions of the 'typeorm-transactional' npm module that are needed to operate in the Nestjs + TypeORM environment
10 lines • 486 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionalEventListeners = void 0;
const nestjs_aop_1 = require("@toss/nestjs-aop");
const common_1 = require("../common");
const TransactionalEventListeners = (symbol) => (0, nestjs_aop_1.createDecorator)(common_1.TRANSACTION_EVENT_LISTENER_DECORATOR, {
transactionHook: symbol,
});
exports.TransactionalEventListeners = TransactionalEventListeners;
//# sourceMappingURL=hooks.decorator.js.map