From 09797b1f95a2b0edfd08aa1176b636ca3e298cf2 Mon Sep 17 00:00:00 2001 From: Julien Torrent Date: Tue, 24 Aug 2021 15:12:15 +0200 Subject: [PATCH] fix: ensures the email is always sent in lowercase --- src/api/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes.ts b/src/api/routes.ts index 511cdb1c..f9c7b012 100644 --- a/src/api/routes.ts +++ b/src/api/routes.ts @@ -46,7 +46,7 @@ export const buildPostItemChatMessageRoute = (id: UUID) => `${ITEMS_ROUTE}/${id}/chat`; export const buildGetMemberBy = (email: string) => - `${MEMBERS_ROUTE}?email=${email}`; + `${MEMBERS_ROUTE}?email=${email.toLowerCase()}`; export const buildGetMember = (id: UUID) => `${MEMBERS_ROUTE}/${id}`; export const buildPatchMember = (id: UUID) => `${MEMBERS_ROUTE}/${id}`; export const buildUploadFilesRoute = (parentId: UUID) =>