Fix an embarrassing bug in getPrivateUser
This commit is contained in:
parent
818c90a95e
commit
521c479abf
|
@ -54,7 +54,7 @@ export async function getUser(userId: string) {
|
||||||
|
|
||||||
export async function getPrivateUser(userId: string) {
|
export async function getPrivateUser(userId: string) {
|
||||||
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
|
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
|
||||||
return (await getDoc(doc(users, userId))).data()!
|
return (await getDoc(doc(privateUsers, userId))).data()!
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getUserByUsername(username: string) {
|
export async function getUserByUsername(username: string) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user