Skip to content

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

Open
781flyingdutchman wants to merge 1 commit intochuyentt:masterfrom
781flyingdutchman:master
Open

Fixed issue where delete call was not awaited leading to a possible inconsistency#27
781flyingdutchman wants to merge 1 commit intochuyentt:masterfrom
781flyingdutchman:master

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