core: fix db.settings.getTrashCleanupInterval return type (#8076)

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-05-16 14:48:28 +05:00
committed by GitHub
parent 4326552ccc
commit 739906dbe4

View File

@@ -157,7 +157,7 @@ export class Settings implements ICollection {
getTrashCleanupInterval() {
const t = this.get("trashCleanupInterval");
// stored as a string in db, need conversion before use
return Number(t);
return Number(t) as TrashCleanupInterval;
}
setDefaultNotebook(item: string | undefined) {