11 lines
194 B
TypeScript
11 lines
194 B
TypeScript
import { db } from "@/lib/db"
|
|
|
|
export const currentUser = async(id: string) => {
|
|
const user = await db.user.findUnique({
|
|
where: {
|
|
id
|
|
}
|
|
});
|
|
|
|
return user;
|
|
} |