Skip to content

Commit

Permalink
Merge pull request #58 from Together42/55-final-test-before-deployment
Browse files Browse the repository at this point in the history
fix: use rotationRepository when findAllRotation
  • Loading branch information
seo-wo authored Dec 20, 2023
2 parents c71e0c9 + ac93c30 commit ee64d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rotation/rotations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ export class RotationsService {
let records: Promise<Partial<RotationEntity>[]>;

if (year && month) {
records = this.rotationAttendeeRepository.find({
records = this.rotationRepository.find({
where: {
year: year,
month: month,
},
});
} else {
records = this.rotationAttendeeRepository.find();
records = this.rotationRepository.find();
}

const modifiedRecords = await Promise.all(
Expand Down

0 comments on commit ee64d4c

Please sign in to comment.