refacfor: add ctx

This commit is contained in:
Vicent Llopis 2022-11-22 14:43:15 +01:00
parent 32f28e91b5
commit e0ba7d523c
2 changed files with 2 additions and 2 deletions

View File

@ -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 = {};

View File

@ -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) {