fixed imports. Maybe.
This commit is contained in:
@@ -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