egg-sequelize-autotrx
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -27,2 +27,6 @@ module.exports = (options, app) => async (ctx, next) => { | ||
const namespace = model.constructor._cls | ||
if (!namespace) { | ||
throw new Error(`[egg-sequelize-autotrx] needs CLS enabled in sequelize, but CLS namespace is not found under ${delegate} datasource`) | ||
} | ||
@@ -29,0 +33,0 @@ if (!model.transaction.__injected) { |
{ | ||
"name": "egg-sequelize-autotrx", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Auto transaction based on cls-hooked for egg-sequelize plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
8768
50