Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Jan 14, 2025
1 parent 45e66ad commit d43b70c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4874,6 +4874,8 @@ async function getUserBlockedRepositores() {
* @param {boolean} registration informs if it's an app registration or not.
*/
async function checkAppSecrets(appName, appComponentSpecs, appOwner, registration = false) {
log.info('checkAppSecrets - starting');
log.info(`checkAppSecrets - appOwner: ${appOwner}`);
const db = dbHelper.databaseConnection();
const database = db.db(config.database.appsglobal.database);
const query = {};
Expand Down Expand Up @@ -4902,7 +4904,9 @@ async function checkAppSecrets(appName, appComponentSpecs, appOwner, registratio
throw new Error('Provided component(s) secrets are not valid');
}
const appsQuery = { $and: [{ 'appSpecifications.version': 7 }, { 'appSpecifications.nodes': { $exists: true, $ne: [] } }] };
log.info('checkAppSecrets - checking permanentappMessages');
const permanentAppMessage = await dbHelper.findInDatabase(database, globalAppsMessages, appsQuery, projection);
log.info(`checkAppSecrets - permanentappmessagefound: ${permanentAppMessage.length}`);
// eslint-disable-next-line no-restricted-syntax
for (const message of permanentAppMessage) {
// eslint-disable-next-line no-restricted-syntax
Expand Down

0 comments on commit d43b70c

Please sign in to comment.