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

Remove lokue db If json damaged #365

Merged

Conversation

ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Mar 27, 2024

This PR adds additional processing for JSON DB file of LokiJS


In some rare cases due to an unexpected termination of the app process, the JSON file used for LokiJS can not be finished recording correctly
Adds additional processing:

  • to prevent app initialization fail
  • if the JSON file is broken
  • delete it entirely before starting the app
  • and then LokiJS will create an empty one

Related to this issue:

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

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

lgtm!

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.

3 participants