web: replace fixed 7 days with trash cleanup interval

This commit is contained in:
Abdullah Atta
2023-03-21 08:06:34 +05:00
parent b44d4702be
commit 9d2bacdc5f
2 changed files with 6 additions and 2 deletions

View File

@@ -133,6 +133,9 @@ class Settings {
await this._saveSettings();
}
/**
* @returns {7 | 30 | 365 | -1}
*/
getTrashCleanupInterval() {
return this._settings.trashCleanupInterval || 7;
}