Merge pull request #1156 from geethkokila/master

Changing the generic application retrieval to get the application ids
revert-70aa11f8
Ruwan 7 years ago committed by GitHub
commit d20a32106b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -239,7 +239,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
}
if (!installedAppList.contains(application)) {
installedApp = applicationDAO.getApplication(application.getApplicationIdentifier(),
application.getVersion(), device.getId(), tenantId);
application.getVersion(), tenantId);
if (installedApp == null) {
appsToAdd.add(application);
} else {
@ -255,7 +255,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
// Getting the applications ids for the second time
for (Application application : appsToAdd) {
installedApp = applicationDAO.getApplication(application.getApplicationIdentifier(),
application.getVersion(), device.getId(), tenantId);
application.getVersion(), tenantId);
application.setId(installedApp.getId());
applicationsToMap.add(application);
}

Loading…
Cancel
Save