init
This commit is contained in:
1 parent
2b9dad1fbf
commit
8cbdde39c1
139 files changed
+19353
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { Document } from '@prisma/client';
|
||||
|
||||
@Injectable()
|
||||
export class DocumentsService {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
|
||||
async findAllForClient(clientId: number): Promise<Document[]> {
|
||||
return this.prisma.document.findMany({
|
||||
where: { authorId: clientId },
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user