mirror of
https://github.com/caprover/caprover
synced 2026-05-04 02:30:30 +00:00
Updated changelog
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
@@ -5,7 +5,7 @@ export interface IAutomatedCleanupConfigs {
|
||||
}
|
||||
|
||||
export class AutomatedCleanupConfigsCleaner {
|
||||
static cleanup(instance: IAutomatedCleanupConfigs) {
|
||||
static sanitizeInput(instance: IAutomatedCleanupConfigs) {
|
||||
return {
|
||||
mostRecentLimit:
|
||||
Number(instance.mostRecentLimit) > 0
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user