fix: comprueba que hay registros
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-01-12 11:52:27 +01:00
parent ed90957ab5
commit da8b6b7f2d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ module.exports = Self => {
try {
const mdbApp = await models.MdbApp.findById(appName, null, myOptions);
if (mdbApp.locked && mdbApp.userFk != userId) {
if (mdbApp && mdbApp.locked && mdbApp.userFk != userId) {
throw new UserError($t('App locked', {
userId: mdbApp.userFk
}));