vigilio icon indicating copy to clipboard operation
vigilio copied to clipboard

Deleting critical files is not deleting the database entries

Open tugcanolgun opened this issue 3 years ago • 0 comments

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.

tugcanolgun avatar Apr 06 '21 15:04 tugcanolgun