Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dauntlessnomad committed Feb 7, 2021
1 parent b175b7a commit ae54a3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 11 additions & 9 deletions src/destinations/destinations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ import { DestinationRepository } from 'src/destinations/destination.repository';
export class DestinationsService {
constructor(
@InjectRepository(DestinationRepository)
private destinationRepository : DestinationRepository){}
private destinationRepository: DestinationRepository,
) {}

async addDestination(AddDestinationDto:AddDestinationDto):Promise <any>{
return this.destinationRepository.addDestination(AddDestinationDto);
}

async updateDestination(id: number, updateDestinationDto: AddDestinationDto)
{
return this.destinationRepository.updateDestination(id,updateDestinationDto);
}
async addDestination(AddDestinationDto: AddDestinationDto): Promise<any> {
return this.destinationRepository.addDestination(AddDestinationDto);
}

async updateDestination(id: number, updateDestinationDto: AddDestinationDto) {
return this.destinationRepository.updateDestination(
id,
updateDestinationDto,
);
}
}
6 changes: 4 additions & 2 deletions src/facilities/facilities.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import {
Query,
ValidationPipe,
ParseIntPipe,
Logger, CacheInterceptor, UseInterceptors
} from "@nestjs/common";
Logger,
CacheInterceptor,
UseInterceptors,
} from '@nestjs/common';
import { FacilitiesService } from './facilities.service';
import { CreateFacilityDto } from './dto/create-facility.dto';
import { UpdateFacilityDto } from './dto/update-facility.dto';
Expand Down

0 comments on commit ae54a3d

Please sign in to comment.