feat: add conversion_jobs repository

Also configures the MariaDB pool with timezone: 'auto', since the
default 'local' mode sends dates without timezone conversion and
silently broke expires_at comparisons whenever the app host and DB
server clocks differ (caught by the findExpiredJobs test).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-30 09:03:04 +02:00
co-authored by Claude Sonnet 5
parent f7c7e547d2
commit 4b7ad9ef4e
3 changed files with 219 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ export function getPool(config) {
password: config.db.password,
database: config.db.database,
connectionLimit: 10,
timezone: 'auto',
});
}
return pool;