fix case issue that caused rename prob

This commit is contained in:
Aaron William Po
2023-02-09 04:16:03 -05:00
parent dbd342fd3e
commit 9ba51c1ab3
7 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import DBClient from '@/prisma/DBClient';
import { z } from 'zod';
import GetUserSchema from './schema/GetUserSchema';
const findUserById = async (id: string) => {
const user: z.infer<typeof GetUserSchema> | null =
await DBClient.instance.user.findUnique({
where: { id },
select: {
id: true,
username: true,
email: true,
firstName: true,
lastName: true,
dateOfBirth: true,
createdAt: true,
},
});
return user;
};
export default findUserById;