mirror of
https://github.com/documenso/documenso
synced 2026-05-24 01:18:23 +00:00
13 lines
290 B
TypeScript
13 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,
|
|
},
|
|
});
|
|
};
|