This repository has been archived on 2026-08-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
admin 9253cac1b2 feat(backend): finalize OnlyPets backend architecture
Refs #3

Backend architecture for OnlyPets was finalized and hardened.

[Text wie oben]
2025-12-25 15:38:57 +01:00

17 lines
354 B
TypeScript

import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';
@Injectable()
export class PrismaService
extends PrismaClient
implements OnModuleInit, OnModuleDestroy
{
async onModuleInit() {
await this.$connect();
}
async onModuleDestroy() {
await this.$disconnect();
}
}