mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
19 lines
341 B
TypeScript
19 lines
341 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export interface GetSharingIdOptions {
|
|
shareId: string;
|
|
}
|
|
|
|
export const getSharingId = async ({ shareId }: GetSharingIdOptions) => {
|
|
const result = await prisma.share.findUnique({
|
|
where: {
|
|
link: shareId,
|
|
},
|
|
include: {
|
|
recipent: true,
|
|
},
|
|
});
|
|
|
|
return result;
|
|
};
|