medici
Version:
Double-entry accounting ledger for Node + Mongoose
10 lines (9 loc) • 337 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mongoTransaction = void 0;
/* eslint require-await: off */
const mongoose_1 = require("mongoose");
async function mongoTransaction(fn, options) {
return mongoose_1.connection.transaction(fn, options);
}
exports.mongoTransaction = mongoTransaction;