feat: added user environments to app module
This commit is contained in:
@@ -6,9 +6,9 @@ services:
|
||||
- PRODUCTION=false
|
||||
- DATABASE_URL=postgresql://postgres:testpass@dev-db:5432/hoppscotch?connect_timeout=300
|
||||
- PORT=3000
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- /usr/src/app/node_modules/
|
||||
# volumes:
|
||||
# - .:/usr/src/app
|
||||
# - /usr/src/app/node_modules/
|
||||
depends_on:
|
||||
- dev-db
|
||||
ports:
|
||||
|
||||
@@ -3,6 +3,7 @@ import { GraphQLModule } from '@nestjs/graphql';
|
||||
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
|
||||
import { UserModule } from './user/user.module';
|
||||
import { GQLComplexityPlugin } from './plugins/GQLComplexityPlugin';
|
||||
import { UserEnvironmentsModule } from './user-environment/user-environments.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -44,6 +45,7 @@ import { GQLComplexityPlugin } from './plugins/GQLComplexityPlugin';
|
||||
driver: ApolloDriver,
|
||||
}),
|
||||
UserModule,
|
||||
UserEnvironmentsModule,
|
||||
],
|
||||
providers: [GQLComplexityPlugin],
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
|
||||
import { PrismaClient } from '@prisma/client/scripts/default-index';
|
||||
import { PrismaClient } from 'prisma/prisma-client/scripts/default-index';
|
||||
|
||||
@Injectable()
|
||||
export class PrismaService
|
||||
|
||||
Reference in New Issue
Block a user