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: Correctly handle removal of unimportant cached files #1271

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Dec 20, 2024

Previous implementation was incorrect because lastOpened prop was stored as a string in the device's storage and so it was retrieved as string

Then the date-fns differenceInMonths was failing comparing dates as it accepts only Date objects and no string

This commit fixes this by parsing the persisted date into a Date and by fixing related TS typings

@Ldoppea Ldoppea force-pushed the fix/prevent_offline_backup branch from cf951d0 to 59d2c7d Compare January 9, 2025 10:51
@Ldoppea Ldoppea force-pushed the fix/prevent_offline_backup branch from 59d2c7d to 3735581 Compare January 17, 2025 11:02
Base automatically changed from fix/prevent_offline_backup to feat/meta_offline January 17, 2025 11:11
Previous implementation was incorrect because `lastOpened` prop was
stored as a string in the device's storage and so it was retrieved as
string

Then the date-fns `differenceInMonths` was failing comparing dates as
it accepts only `Date` objects and no string

This commit fixes this by parsing the persisted date into a `Date` and
by fixing related TS typings
@Ldoppea Ldoppea merged commit e656f8f into feat/meta_offline Jan 17, 2025
1 check passed
@Ldoppea Ldoppea deleted the feat/date_fns branch January 17, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants