mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix the uninstall operation of the uninstall API
This commit is contained in:
parent
58c866f33d
commit
c095ca40ff
@ -553,8 +553,8 @@ public class GenericSubscriptionDAOImpl extends AbstractDAOImpl implements Subsc
|
|||||||
for (Integer deviceId : deviceIds) {
|
for (Integer deviceId : deviceIds) {
|
||||||
ps.setObject(index++, deviceId);
|
ps.setObject(index++, deviceId);
|
||||||
}
|
}
|
||||||
ps.setInt(index++, tenantId);
|
ps.setInt(index++, applicationReleaseId);
|
||||||
ps.setInt(index, applicationReleaseId);
|
ps.setInt(index, tenantId);
|
||||||
try (ResultSet rs = ps.executeQuery()) {
|
try (ResultSet rs = ps.executeQuery()) {
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
subscribedDevices.add(rs.getInt("DM_DEVICE_ID"));
|
subscribedDevices.add(rs.getInt("DM_DEVICE_ID"));
|
||||||
|
|||||||
@ -496,6 +496,7 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|||||||
app.setLocation(application.getApplicationReleases().get(0).getInstallerPath());
|
app.setLocation(application.getApplicationReleases().get(0).getInstallerPath());
|
||||||
return MDMAndroidOperationUtil.createInstallAppOperation(app);
|
return MDMAndroidOperationUtil.createInstallAppOperation(app);
|
||||||
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {
|
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {
|
||||||
|
app.setType(mobileAppType);
|
||||||
return MDMAndroidOperationUtil.createAppUninstallOperation(app);
|
return MDMAndroidOperationUtil.createAppUninstallOperation(app);
|
||||||
} else {
|
} else {
|
||||||
String msg = "Invalid Action is found. Action: " + action;
|
String msg = "Invalid Action is found. Action: " + action;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user