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

Fixed issue where delete call was not awaited leading to a possible inconsistency #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

781flyingdutchman
Copy link
Contributor

Hi, similar to previous pull request, this addresses a condition where if you delete a ref and then immediately read it again the 'deleted' document still shows up. This is caused by not 'awaiting' the calls to _deleteDirectory and _deleteFile, so I added that. Also changed some of the 'existsSync' etc call to just await (not entirely sure but I believe it's better to not use the 'sync' calls and there is no need for it given you're already in an async function.

… inconsistency when

  deleting and then reading a ref immediately afterwards
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.

1 participant