Updated changelog

This commit is contained in:
Kasra Bigdeli
2024-08-17 17:03:50 -07:00
parent 501caaa020
commit 5bcdb592f0
4 changed files with 9 additions and 8 deletions
+1
View File
@@ -1,6 +1,7 @@
## [Next Version - available as `edge`]
- Fixed: the app log box is resizable again [issue-2112](https://github.com/caprover/caprover/issues/2112)
- Fixed: showing the missing timezones due to daylight saving time[issue-2110](https://github.com/caprover/caprover/issues/2110)
## [1.12.0] - 2024-08-17
+2 -2
View File
@@ -117,7 +117,7 @@ class DataStore {
return Promise.resolve().then(function () {
return self.data.set(
AUTOMATED_CLEANUP,
AutomatedCleanupConfigsCleaner.cleanup(configs)
AutomatedCleanupConfigsCleaner.sanitizeInput(configs)
)
})
}
@@ -127,7 +127,7 @@ class DataStore {
return Promise.resolve().then(function () {
return (
self.data.get(AUTOMATED_CLEANUP) ||
AutomatedCleanupConfigsCleaner.cleanup({
AutomatedCleanupConfigsCleaner.sanitizeInput({
mostRecentLimit: 0,
cronSchedule: '',
timezone: '',
+1 -1
View File
@@ -5,7 +5,7 @@ export interface IAutomatedCleanupConfigs {
}
export class AutomatedCleanupConfigsCleaner {
static cleanup(instance: IAutomatedCleanupConfigs) {
static sanitizeInput(instance: IAutomatedCleanupConfigs) {
return {
mostRecentLimit:
Number(instance.mostRecentLimit) > 0
+5 -5
View File
@@ -221,13 +221,13 @@ router.get('/diskcleanup/', function (req, res, next) {
})
router.post('/diskcleanup/', function (req, res, next) {
const configs = AutomatedCleanupConfigsCleaner.cleanup({
mostRecentLimit: req.body.mostRecentLimit,
cronSchedule: req.body.cronSchedule,
timezone: req.body.timezone,
})
return Promise.resolve()
.then(function () {
const configs = AutomatedCleanupConfigsCleaner.sanitizeInput({
mostRecentLimit: req.body.mostRecentLimit,
cronSchedule: req.body.cronSchedule,
timezone: req.body.timezone,
})
return CaptainManager.get()
.getDiskCleanupManager()
.setConfig(configs)