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