Refactored project ready for server.
Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
parent
5a115374b4
commit
dd67fc967a
36 changed files with 1187 additions and 1003 deletions
11
fe/lib/getUser.ts
Normal file
11
fe/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