Make Trends use SQLite again

This commit is contained in:
Alex Gleason
2024-05-21 17:12:33 -05:00
parent 4d21dd05a8
commit b2a5ff3eaf
6 changed files with 44 additions and 47 deletions

View File

@@ -7,7 +7,7 @@ import { stripTime } from '@/utils/time.ts';
import { TrendsWorker } from '@/workers/trends.ts';
import { Context } from 'hono';
await TrendsWorker.setupCleanupJob();
await TrendsWorker.open('data/trends.sqlite3');
const limitSchema = z.coerce.number().catch(10).transform((value) => Math.min(Math.max(value, 0), 20));