mirror of
https://github.com/documenso/documenso
synced 2026-04-21 21:37:18 +00:00
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export interface GetDocumentMetaByDocumentIdOptions {
|
|
id: number;
|
|
}
|
|
|
|
export const getDocumentMetaByDocumentId = async ({ id }: GetDocumentMetaByDocumentIdOptions) => {
|
|
return await prisma.documentMeta.findFirstOrThrow({
|
|
where: {
|
|
documentId: id,
|
|
},
|
|
});
|
|
};
|