Updated styling
Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
parent
20f681aa3c
commit
7ba84dd020
14 changed files with 2497 additions and 2316 deletions
11
lib/getUser.ts
Normal file
11
lib/getUser.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { prisma } from "~/server"
|
||||
|
||||
export const getUserByDiscordId = async (discord_id: string) => {
|
||||
const user = await prisma.user.findUnique({
|
||||
where: {
|
||||
discord_id
|
||||
}
|
||||
})
|
||||
|
||||
return user
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue