fix log cleanup check to actually pay attention to limit

This commit is contained in:
2025-05-28 19:44:16 -06:00
parent b2cccfb7ef
commit de7ab5c152

View File

@@ -150,6 +150,7 @@ export async function logToDb(message: string): Promise<void> {
await platform.dbExec("DELETE FROM logs WHERE date < ?", [ await platform.dbExec("DELETE FROM logs WHERE date < ?", [
sevenDaysAgo.toDateString(), sevenDaysAgo.toDateString(),
]); ]);
lastCleanupDate = todayKey;
} }
} catch (error) { } catch (error) {
// Log to console as fallback // Log to console as fallback