mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
feat: add the admin page
This commit is contained in:
5
packages/lib/server-only/admin/get-documents.ts
Normal file
5
packages/lib/server-only/admin/get-documents.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
export const getDocsCount = async () => {
|
||||
return await prisma.document.count();
|
||||
};
|
||||
Reference in New Issue
Block a user