mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
14 lines
290 B
TypeScript
14 lines
290 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export interface GetRecipientByTokenOptions {
|
|
token: string;
|
|
}
|
|
|
|
export const getRecipientByToken = async ({ token }: GetRecipientByTokenOptions) => {
|
|
return await prisma.recipient.findFirstOrThrow({
|
|
where: {
|
|
token,
|
|
},
|
|
});
|
|
};
|