fix: migration for newly created self-hosting instances

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-16 22:08:25 +01:00
parent 1e4f02fb5e
commit ea6b69d3ec
2 changed files with 11 additions and 2 deletions

View File

@@ -100,6 +100,9 @@ async function createOldSessions() {
if (!row || row.count === '0') {
return null;
}
if (row.created_at.startsWith('1970')) {
return null;
}
return new Date(row.created_at);
} catch (e) {
return defaultDate;