Skip to content

Commit

Permalink
Merge pull request #35 from parlemonde/feat/invitation_link
Browse files Browse the repository at this point in the history
change invitation link duration from 24 hours to 14 days
  • Loading branch information
DavidRobertAnsart authored Sep 24, 2024
2 parents 1fb149e + b6104e4 commit d503601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ userController.get({ path: '/invite' }, async (req, res) => {
const invite = new Invite();
invite.token = generateToken(20);
invite.createdAt = new Date();
const nextDay = invite.createdAt.getDate() + 1;
const nextDay = invite.createdAt.getDate() + 14;
invite.expiredAt = new Date();
invite.expiredAt.setDate(nextDay);
await getRepository(Invite).save(invite);
Expand Down

0 comments on commit d503601

Please sign in to comment.