mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request 'Fix missing commit by moving transaction commit after metadata update.' (#532) from nipuni/device-mgt-core:11963 into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/532
This commit is contained in:
commit
66f6982098
@ -151,9 +151,9 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
||||
if (metadataDAO.isExist(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY)) {
|
||||
// Add default device status check metadata entries
|
||||
metadataDAO.updateMetadata(tenantId, constructDeviceStatusCheckMetadata(isChecked));
|
||||
MetadataManagementDAOFactory.commitTransaction();
|
||||
return true;
|
||||
}
|
||||
MetadataManagementDAOFactory.commitTransaction();
|
||||
} catch (MetadataManagementDAOException e) {
|
||||
MetadataManagementDAOFactory.rollbackTransaction();
|
||||
String msg = "Error occurred while updating device status check metadata entry.";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user