From 8e038f6944e42b0c4b2cb6740d14b637dcdabcb1 Mon Sep 17 00:00:00 2001 From: ankitsridhar16 Date: Tue, 13 Dec 2022 16:10:58 +0530 Subject: [PATCH] feat: added user environments to app module --- packages/hoppscotch-backend/docker-compose.yml | 6 +++--- packages/hoppscotch-backend/src/app.module.ts | 2 ++ packages/hoppscotch-backend/src/prisma/prisma.service.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-backend/docker-compose.yml b/packages/hoppscotch-backend/docker-compose.yml index 9b22e6f75..72bd1e8ac 100644 --- a/packages/hoppscotch-backend/docker-compose.yml +++ b/packages/hoppscotch-backend/docker-compose.yml @@ -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: diff --git a/packages/hoppscotch-backend/src/app.module.ts b/packages/hoppscotch-backend/src/app.module.ts index 7614320b9..b9281e55d 100644 --- a/packages/hoppscotch-backend/src/app.module.ts +++ b/packages/hoppscotch-backend/src/app.module.ts @@ -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], }) diff --git a/packages/hoppscotch-backend/src/prisma/prisma.service.ts b/packages/hoppscotch-backend/src/prisma/prisma.service.ts index 5b962c430..70d38eebb 100644 --- a/packages/hoppscotch-backend/src/prisma/prisma.service.ts +++ b/packages/hoppscotch-backend/src/prisma/prisma.service.ts @@ -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