joschan21 / nextjs-realtime-chat

A performant and reliable realtime-chat-app built with NextJS 13
906 stars 158 forks source link

fix api/friends/add email prop case sensitivity #17

Open OvaisKhanday opened 4 months ago

OvaisKhanday commented 4 months ago

Searching in Redis is case sensitive when searching for a user based on his/her email:

User@example.com is different than user@example.com.

But the redis-adapter we are using is storing emails in lowercase. So it is implicit that we also have to convert an email to lowercase before querying Redis for matching.