Skip to content

Commit

Permalink
chore: change first reminder time
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCharrier committed Nov 13, 2024
1 parent 4a04ebc commit ec7c1b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/test-newsletter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe("Newsletter", () => {
.values({ ...mockNewsletter })
.execute();
clock = sinon.useFakeTimers(
add(mockNewsletter.publish_at, { days: -6 })
add(mockNewsletter.publish_at, { days: -5 })
);
await newsletterReminder("FIRST_REMINDER");
slack.firstCall.args[0].text.should.equal(
Expand Down
2 changes: 1 addition & 1 deletion src/server/schedulers/newsletterScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Vérifie une dernière fois le contenu du pad ${newsletter.url}. À 16 h, il ser
};

const REMINDER_NB_DAYS = {
FIRST_REMINDER: -6,
FIRST_REMINDER: -5,
SECOND_REMINDER: 0,
THIRD_REMINDER: 0,
};
Expand Down

0 comments on commit ec7c1b8

Please sign in to comment.