mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
fix: fetch session profile from DB
This commit is contained in:
@@ -21,6 +21,12 @@ export const createSelfHostedUser = cache(async () => {
|
||||
})
|
||||
})
|
||||
|
||||
export const getUserById = cache(async (id: string) => {
|
||||
return await prisma.user.findUnique({
|
||||
where: { id },
|
||||
})
|
||||
})
|
||||
|
||||
export const getUserByEmail = cache(async (email: string) => {
|
||||
return await prisma.user.findUnique({
|
||||
where: { email },
|
||||
|
||||
Reference in New Issue
Block a user