Skip to content

Commit

Permalink
feat: add deleteContinent and called delete
Browse files Browse the repository at this point in the history
  • Loading branch information
william koller committed Oct 12, 2021
1 parent aadf423 commit fbc965a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/continents/repositories/continents.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ export class ContinentsRepository extends Repository<ContinentEntity> {
const continentUpdated = this.merge(continent, { ...updateContinentDto });
return await this.save(continentUpdated);
}

public async deleteContinent(id: number): Promise<void> {
await this.delete(id);
}
}

0 comments on commit fbc965a

Please sign in to comment.