Refactored project ready for server.

Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
Louis Hollingworth 2024-02-14 17:39:30 +00:00
parent 5a115374b4
commit dd67fc967a
Signed by: lucxjo
GPG key ID: A11415CB3DC7809B
36 changed files with 1187 additions and 1003 deletions

11
fe/lib/getUser.ts Normal file
View 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
}