11 lines
224 B
TypeScript
11 lines
224 B
TypeScript
import { prisma } from "~/server"
|
|
|
|
export const getUserByDiscordId = async (discord_id: string) => {
|
|
const user = await prisma.user.findUnique({
|
|
where: {
|
|
discord_id
|
|
}
|
|
})
|
|
|
|
return user
|
|
} |