fix linting

This commit is contained in:
2025-05-28 20:30:00 -06:00
parent ec1f27bab1
commit ef3bfcdbd2
3 changed files with 5 additions and 3 deletions

View File

@@ -145,7 +145,9 @@ export async function logToDb(message: string): Promise<void> {
// Clean up old logs (keep only last 7 days) - do this less frequently
// Only clean up if the date is different from the last cleanup
if (!lastCleanupDate || lastCleanupDate !== todayKey) {
const sevenDaysAgo = new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000);
const sevenDaysAgo = new Date(
new Date().getTime() - 7 * 24 * 60 * 60 * 1000,
);
await platform.dbExec("DELETE FROM logs WHERE date < ?", [
sevenDaysAgo.toDateString(),
]);