Skip to content

Commit

Permalink
Change getAllEventAttendances -> getEventAttendances and
Browse files Browse the repository at this point in the history
getAllEventRSVPs -> getEventRSVPs
  • Loading branch information
Thai committed Feb 1, 2021
1 parent eb10b2e commit 898d4d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/services/AttendanceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class AttendanceService {
* @param {MultipleAttendanceQuery} multipleAttendanceQuery Query parameters to filter attendances.
* @returns {Promise} Array of attendances from the specified event.
*/
async getAllEventAttendances(
async getEventAttendances(
event: Event,
multipleAttendanceQuery: MultipleAttendanceQuery
): Promise<Attendance[]> {
Expand Down
4 changes: 2 additions & 2 deletions src/services/EventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class EventService {
return undefined;
}

const attendances = await this.attendanceService.getAllEventAttendances(
const attendances = await this.attendanceService.getEventAttendances(
event,
multipleAttendanceQuery
);
Expand All @@ -125,7 +125,7 @@ export class EventService {
return undefined;
}

const rsvps = await this.rsvpService.getAllEventRSVPs(event);
const rsvps = await this.rsvpService.getEventRSVPs(event);

return rsvps;
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/RSVPService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class RSVPService {
return newRSVP;
}

async getAllEventRSVPs(event: Event): Promise<RSVP[]> {
async getEventRSVPs(event: Event): Promise<RSVP[]> {
const rsvpRepository = getRepository(RSVP);
const query = this.buildMultipleRSVPQuery(event, true);

Expand Down

0 comments on commit 898d4d0

Please sign in to comment.