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: use fileMap as source of truth for deleting folders #32

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

Ian2012
Copy link
Contributor

@Ian2012 Ian2012 commented Nov 30, 2023

Description

This PR fixes an issue in which if a file already uploaded was moved to a folder, and this folder was deleted the file would disappear. It was caused because the children is not the source of truth, but the childrenIds is, this PR uses the childrenIds to map the files and move it to the Unpublished folder

@Ian2012 Ian2012 force-pushed the cag/delete-existing-file branch 2 times, most recently from 34c29c3 to a8eaae2 Compare November 30, 2023 20:20
@Ian2012 Ian2012 force-pushed the cag/delete-existing-file branch 2 times, most recently from 0e8c97d to ef7abc2 Compare November 30, 2023 21:01
Copy link
Contributor

@johnvente johnvente left a comment

Choose a reason for hiding this comment

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

LGTM!

@Ian2012 Ian2012 force-pushed the cag/delete-existing-file branch from ef7abc2 to c660969 Compare November 30, 2023 21:03
@johnvente johnvente merged commit 7e30337 into main Nov 30, 2023
@johnvente johnvente deleted the cag/delete-existing-file branch November 30, 2023 21:06
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