egg-sequelize-autotrx
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -35,6 +35,6 @@ module.exports = (options, app) => async (ctx, next) => { | ||
if (transaction) { | ||
app.loggers.coreLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction call injected transaction method`) | ||
app.loggers.appLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction call injected transaction method`) | ||
return oldTrx.call(model, { transaction }, task) | ||
} else { | ||
app.loggers.coreLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction call original transaction method`) | ||
app.loggers.appLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction call original transaction method`) | ||
return oldTrx.call(model, task) | ||
@@ -44,4 +44,4 @@ } | ||
model.transaction.__injected = true | ||
app.loggers.coreLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction is injected`) | ||
app.loggers.appLogger.info(`[egg-sequelize-autotrx] ctx.[${delegate}].transaction is injected`) | ||
} | ||
} |
{ | ||
"name": "egg-sequelize-autotrx", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Auto transaction based on cls-hooked for egg-sequelize plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
8770