mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
14 lines
252 B
TypeScript
14 lines
252 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export interface GetUserByIdOptions {
|
|
id: number;
|
|
}
|
|
|
|
export const getUserById = async ({ id }: GetUserByIdOptions) => {
|
|
return await prisma.user.findFirstOrThrow({
|
|
where: {
|
|
id,
|
|
},
|
|
});
|
|
};
|