Skip to content

Commit cb1a851

Browse files
committed
added email as string
1 parent f4c0a2f commit cb1a851

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/member.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const listAllApprovedMembers = async (req: Request, res: Response) => {
1111

1212
if(email) {
1313

14-
const user = await memberService.getUserByEmail(email);
14+
const user = await memberService.getUserByEmail(email as string);
1515

1616
if(!user) throw new ApiError('Incorrect email', 400);
1717

0 commit comments

Comments
 (0)