fixed imports. Maybe.
This commit is contained in:
@@ -87,7 +87,7 @@ export class FuelLogsService {
|
||||
|
||||
// Get from database
|
||||
const logs = await this.repository.findByVehicleId(vehicleId);
|
||||
const response = logs.map(log => this.toResponse(log));
|
||||
const response = logs.map((log: FuelLog) => this.toResponse(log));
|
||||
|
||||
// Cache result
|
||||
await cacheService.set(cacheKey, response, this.cacheTTL);
|
||||
@@ -106,7 +106,7 @@ export class FuelLogsService {
|
||||
|
||||
// Get from database
|
||||
const logs = await this.repository.findByUserId(userId);
|
||||
const response = logs.map(log => this.toResponse(log));
|
||||
const response = logs.map((log: FuelLog) => this.toResponse(log));
|
||||
|
||||
// Cache result
|
||||
await cacheService.set(cacheKey, response, this.cacheTTL);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { StationsRepository } from '../data/stations.repository';
|
||||
import { googleMapsClient } from '../external/google-maps/google-maps.client';
|
||||
import { StationSearchRequest, StationSearchResponse } from './stations.types';
|
||||
import { StationSearchRequest, StationSearchResponse, SavedStation } from './stations.types';
|
||||
import { logger } from '../../../core/logging/logger';
|
||||
|
||||
export class StationsService {
|
||||
@@ -68,7 +68,7 @@ export class StationsService {
|
||||
|
||||
// Enrich with cached station data
|
||||
const enriched = await Promise.all(
|
||||
savedStations.map(async (saved) => {
|
||||
savedStations.map(async (saved: SavedStation) => {
|
||||
const station = await this.repository.getCachedStation(saved.stationId);
|
||||
return {
|
||||
...saved,
|
||||
|
||||
@@ -70,7 +70,7 @@ export class VehiclesService {
|
||||
|
||||
// Get from database
|
||||
const vehicles = await this.repository.findByUserId(userId);
|
||||
const response = vehicles.map(v => this.toResponse(v));
|
||||
const response = vehicles.map((v: Vehicle) => this.toResponse(v));
|
||||
|
||||
// Cache result
|
||||
await cacheService.set(cacheKey, response, this.listCacheTTL);
|
||||
|
||||
Reference in New Issue
Block a user