egg-sequelize-autotrx
Advanced tools
Comparing version 0.0.1 to 0.0.2
const assert = require('assert') | ||
module.exports = app => { | ||
const index = app.config.coreMiddleware.indexOf('sequelize') | ||
console.log('egg-sequelize-autotrx app.js') | ||
/*const index = app.config.coreMiddleware.indexOf('sequelize') | ||
@@ -10,3 +11,4 @@ // egg-sequelize is required | ||
// put this plugin after egg-sequelize | ||
app.config.coreMiddleware.splice(index + 1, 0, 'sequelizeAutotrx') | ||
app.config.coreMiddleware.splice(index + 1, 0, 'sequelizeAutotrx') */ | ||
app.config.coreMiddleware.push('transaction') | ||
} |
{ | ||
"name": "egg-sequelize-autotrx", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Auto transaction based on cls-hooked for egg-sequelize plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7158
17