refacfor: add ctx
This commit is contained in:
parent
32f28e91b5
commit
e0ba7d523c
|
@ -22,7 +22,7 @@ module.exports = Self => {
|
|||
}
|
||||
});
|
||||
|
||||
Self.unlock = async(appName, options) => {
|
||||
Self.unlock = async(ctx, appName, options) => {
|
||||
const models = Self.app.models;
|
||||
const myOptions = {};
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ module.exports = Self => {
|
|||
version: newVersion
|
||||
}, myOptions);
|
||||
|
||||
if (unlock) await models.MdbApp.unlock(appName, myOptions);
|
||||
if (unlock) await models.MdbApp.unlock(ctx, appName, myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue