feat: generate metatags for share page with og image

This commit is contained in:
Ephraim Atta-Duncan
2023-08-29 19:08:54 +00:00
committed by Mythie
parent 96264f67e4
commit f2da49d0e8
3 changed files with 66 additions and 17 deletions

View File

@ -0,0 +1,18 @@
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;
};