Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): use luxon for deleted date calculation #6958

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

manasadepu
Copy link
Contributor

Fix for #6843

const msInDay = 86_400_000;
const msDeleteWait = msInDay * 7;
const msSinceDelete = Date.now() - (Date.parse(user.deletedAt.toString()) || 0);
const msDeleteWait = 7 * 24 * 60 * 60 * 1000; // milliseconds in a week
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use luxon.Duration here instead?

@jrasm91 jrasm91 changed the title fix(server) Added Luxon Implementation for User Deletion Calculation fix(server): use luxon for deleted date calculation Feb 8, 2024
@jrasm91 jrasm91 merged commit 198e851 into immich-app:main Feb 8, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants