Skip to content

Commit

Permalink
Temp change of recipients
Browse files Browse the repository at this point in the history
  • Loading branch information
kakoma committed Oct 9, 2023
1 parent 09051f7 commit a0d5bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reports/reports.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class ReportsService {
const currentDayOfWeek = currentDate.getDay();

// Calculate the date for the Monday of the current week
const startDate = new Date(currentDate);
const startDate = new Date("02-09-2023");
startDate.setDate(currentDate.getDate() - currentDayOfWeek + 1);
startDate.setHours(0, 0, 0, 0); // Set to midnight

Expand Down Expand Up @@ -392,7 +392,7 @@ export class ReportsService {
</html>
`;

const usersWithRole = await this.usersService.findByRole("Report Champion");
const usersWithRole = await this.usersService.findByRole("RoleAdmin");
const emailAddresses = usersWithRole.map((user) => user.username);
if (!emailAddresses.length) {
return "Error | Weekly email not sent";
Expand Down

0 comments on commit a0d5bb4

Please sign in to comment.