From dc95fc109e41e4a20aa9560bdac1efe82480f4d2 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sat, 23 Aug 2025 12:15:44 -0500 Subject: [PATCH] Fix TypeScript import inconsistencies causing GitHub Actions build failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Standardized pool imports to use default export consistently - Changed from named import { pool } to default import pool - Resolves "Cannot find module" errors in CI environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- backend/src/features/fuel-logs/domain/fuel-logs.service.ts | 2 +- backend/src/features/vehicles/api/vehicles.controller.ts | 2 +- .../vehicles/tests/integration/vehicles.integration.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/features/fuel-logs/domain/fuel-logs.service.ts b/backend/src/features/fuel-logs/domain/fuel-logs.service.ts index d20c7e7..ac87c55 100644 --- a/backend/src/features/fuel-logs/domain/fuel-logs.service.ts +++ b/backend/src/features/fuel-logs/domain/fuel-logs.service.ts @@ -13,7 +13,7 @@ import { } from './fuel-logs.types'; import { logger } from '../../../core/logging/logger'; import { cacheService } from '../../../core/config/redis'; -import { pool } from '../../../core/config/database'; +import pool from '../../../core/config/database'; export class FuelLogsService { private readonly cachePrefix = 'fuel-logs'; diff --git a/backend/src/features/vehicles/api/vehicles.controller.ts b/backend/src/features/vehicles/api/vehicles.controller.ts index f6043a0..f0369f6 100644 --- a/backend/src/features/vehicles/api/vehicles.controller.ts +++ b/backend/src/features/vehicles/api/vehicles.controller.ts @@ -6,7 +6,7 @@ import { Request, Response, NextFunction } from 'express'; import { VehiclesService } from '../domain/vehicles.service'; import { VehiclesRepository } from '../data/vehicles.repository'; -import { pool } from '../../../core/config/database'; +import pool from '../../../core/config/database'; import { logger } from '../../../core/logging/logger'; import { ZodError } from 'zod'; import { diff --git a/backend/src/features/vehicles/tests/integration/vehicles.integration.test.ts b/backend/src/features/vehicles/tests/integration/vehicles.integration.test.ts index 782fad6..d8266df 100644 --- a/backend/src/features/vehicles/tests/integration/vehicles.integration.test.ts +++ b/backend/src/features/vehicles/tests/integration/vehicles.integration.test.ts @@ -5,7 +5,7 @@ import request from 'supertest'; import { app } from '../../../../app'; -import { pool } from '../../../../core/config/database'; +import pool from '../../../../core/config/database'; import { cacheService } from '../../../../core/config/redis'; import { readFileSync } from 'fs'; import { join } from 'path';