vigilio
vigilio copied to clipboard
Deleting critical files is not deleting the database entries
In movie details page, users can delete files in the movie folders. If a marked critical file is selected to be deleted, the back-end is not deleting the database entry for that given file. This creates the problem where the said movie details page always shows that there are missing files.
Temporary workaround As the issue still there, users can delete the said files from their admin panels.
Required solution
Front-end should send isCritical
information along side with the file path when deleting the files. The back-end should search the said file in the database and delete it.
Better approach
Instead of searching the database for a file, id
and table
of the file could be sent for optimization.