chore: delete empty features module, fix RaceRow timestamp types
Some checks failed
CI / build-and-test (pull_request) Has been cancelled

- Remove dead frontend/src/features/index.ts (empty export, unused)

- RaceRow: created_at/updated_at typed as Date to match pg TIMESTAMPTZ runtime

- rowToDto: explicit toISOString() conversion instead of relying on JSON.stringify

- Mock DB: return Date objects for timestamp fields to match real pg behavior

Made-with: Cursor
This commit is contained in:
Anton
2026-04-07 18:35:11 +03:00
parent 4b63af8da5
commit 7260fb59ea
3 changed files with 14 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ const poolConfig: PoolConfig = {
function mockRowFromInsert(sql: string, params: unknown[]): RaceRow {
const match = sql.match(/INSERT INTO races\s*\(([^)]+)\)\s*VALUES/i);
const now = new Date().toISOString();
const now = new Date();
if (!match) {
return {
id: String(params[0] ?? ""),
@@ -108,7 +108,7 @@ function createMockPool(): Pool {
if (!existing) {
return emptyResult();
}
const updated = { ...existing, updated_at: new Date().toISOString() };
const updated = { ...existing, updated_at: new Date() };
store.set(id, updated);
return {
rows: [updated as unknown as T],