chai-backend
chai-backend copied to clipboard
Fixed a bug related to avatar
req.files?.avatar[0] can cause errors as req.file?.avatar give undefined if not present and undefined[0] will throw error so fixed it