Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
kev306 committed Jan 21, 2025
1 parent 94b1220 commit b5198a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/databaseAdapters/mongoose/season.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import { ISeason } from '../../models/types/season.types';
// TODO-kev: Should we have the implement interface here or no need?
export class MongoSeasonAdapter {
parseSeason(season: ISeason): string {
return `id= ${season.id};
seasonNumber=${season.seasonCounter}
name= ${season.name};
startDate= ${season.startDate};
endDate= ${season.endDate}`;
return `id=${season.id}; seasonNumber=${season.seasonCounter} name=${season.name}; startDate=${season.startDate}; endDate=${season.endDate}`;
}

async getCurrentSeason(): Promise<ISeason | null> {
Expand Down

0 comments on commit b5198a1

Please sign in to comment.