12 lines
277 B
TypeScript
12 lines
277 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { PrismaService } from 'src/prisma/prisma.service';
|
|
|
|
@Injectable()
|
|
export class ContactsService {
|
|
constructor(private readonly prisma: PrismaService) {}
|
|
|
|
async getAll() {
|
|
return this.prisma.contacts.findMany();
|
|
}
|
|
}
|