Merge remote-tracking branch 'origin/4.18' into 4.19

This commit is contained in:
Rohit Yadav 2024-07-29 09:42:38 +05:30
commit 3d32ab5a49
2 changed files with 1 additions and 5 deletions

View File

@ -547,16 +547,11 @@ public class UsageDaoImpl extends GenericDaoBase<UsageVO, Long> implements Usage
TransactionLegacy txn = TransactionLegacy.currentTxn();
PreparedStatement pstmt = null;
try {
txn.start();
pstmt = txn.prepareAutoCloseStatement(DELETE_ALL_BY_INTERVAL);
pstmt.setLong(1, days);
pstmt.executeUpdate();
txn.commit();
} catch (Exception ex) {
txn.rollback();
s_logger.error("error removing old cloud_usage records for interval: " + days);
} finally {
txn.close();
}
}
});

View File

@ -402,6 +402,7 @@ export default {
if (this.arrayHasItems(networks)) {
this.network = networks[0]
}
resolve(this.network)
})
this.networkLoading = false
})