Skip to content

Commit cdd0579

Browse files
committed
10 Aug 2023, 14:10
1 parent 3d6fe96 commit cdd0579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/product/productController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const remove = async (req: Request, res: Response, next: NextFunction) => {
195195
console.log(filePath);
196196
fs.unlink(`${APP_ROOT}/${filePath}`, (err) => {
197197
if (err)
198-
return next(CustomErrorHandler.multerError('Could not delete file'));
198+
return next(CustomErrorHandler.multerError('Could not delete file'));
199199
else console.log('✅ Uploaded file deleted');
200200
});
201201

0 commit comments

Comments
 (0)