made the email field case-insensitive
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { toast } from "react-hot-toast";
|
||||
|
||||
export default async function getPublicUserDataByEmail(email: string) {
|
||||
const response = await fetch(`/api/routes/users?email=${email}`);
|
||||
const response = await fetch(
|
||||
`/api/routes/users?email=${email.toLowerCase()}`
|
||||
);
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user