Skip to content

Commit

Permalink
fix: deleteFile endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Aug 4, 2022
1 parent c9570d4 commit ea1e918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/fileStore.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getFileList = async (req, res) => {

export const deleteFile = async (req, res) => {
try {
await FileStore.deleteFileStorItem(req.params.fileId);
await FileStore.deleteFileStorItem(req.body.fileId);
res.status(204).end();
} catch (error) {
res.status(400).json({
Expand Down

0 comments on commit ea1e918

Please sign in to comment.