4794-mdb_block #1170
|
@ -22,7 +22,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.unlock = async(appName, options) => {
|
Self.unlock = async(ctx, appName, options) => {
|
||||||
const models = Self.app.models;
|
const models = Self.app.models;
|
||||||
const myOptions = {};
|
const myOptions = {};
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ module.exports = Self => {
|
||||||
version: newVersion
|
version: newVersion
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
if (unlock) await models.MdbApp.unlock(appName, myOptions);
|
if (unlock) await models.MdbApp.unlock(ctx, appName, myOptions);
|
||||||
|
|
||||||
if (tx) await tx.commit();
|
if (tx) await tx.commit();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue