mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
14 lines
320 B
TypeScript
14 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,
|
|
},
|
|
});
|
|
};
|