Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat: added user environments to app module
ankitsridhar168e038f6944e4
diff --git a/packages/hoppscotch-backend/docker-compose.yml b/packages/hoppscotch-backend/docker-compose.ymlindex 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-dbports:diff --git a/packages/hoppscotch-backend/src/app.module.ts b/packages/hoppscotch-backend/src/app.module.tsindex 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.tsindex 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