feat: pages
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ export async function getCurrentUser() {
|
||||
return findUserById(userId);
|
||||
}
|
||||
|
||||
export async function getUser(id: string) {
|
||||
export async function getUser(id: string | null) {
|
||||
if (!id) return null;
|
||||
return findUserById(id);
|
||||
}
|
||||
Reference in New Issue
Block a user