Athma-Vasi / MacAuley-Tech-Repair-Employee-Portal---backend

0 stars 0 forks source link

fix query string bug #19

Closed Athma-Vasi closed 1 year ago

Athma-Vasi commented 1 year ago

fix bug where two 'eq' in query string breaks express and mongoose.

Error: CastError: Cast to string failed for value "[ 'Parental', 'Jury Duty' ]" (type Array) at path "reasonForLeave" for model "LeaveRequest" at getQueriedTotalLeaveRequestsService ...

Athma-Vasi commented 1 year ago

done