Skip to content

Commit

Permalink
Merge pull request #4303 from Countly/dm/perm-script
Browse files Browse the repository at this point in the history
[data-manager] Script fix, empty appId
  • Loading branch information
kanwarujjaval authored Jun 12, 2023
2 parents dd8b5e3 + 1f51dbf commit 5e0a8de
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ pluginManager.dbConnection().then(async (countlyDb) => {
}
let apps = group.permission[type];
Object.keys(apps).forEach(function (appId) {
if (!appId) {
return;
}
if (!apps[appId].allowed) {
apps[appId].allowed = {};
update[`permission.${type}.${appId}.allowed`] = {};
Expand Down

0 comments on commit 5e0a8de

Please sign in to comment.