From 7ee33abdefc0b3a3a35400860579e32ef054a601 Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Fri, 16 May 2025 16:55:56 +0600 Subject: [PATCH] HSB-514 refactor: remove unused `CollType` GQL enum (#5074) chore: removed unused CollType GQL enum --- docker-compose.deploy.yml | 2 +- .../src/user-collection/user-collections.model.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml index 91ae6bef..e9b7919a 100644 --- a/docker-compose.deploy.yml +++ b/docker-compose.deploy.yml @@ -28,7 +28,7 @@ services: environment: # DATABASE_URL is read from the .env file to allow the backend to connect with an external database. # This allows the backend to retain existing data and prevents database resets during deployments. - - DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch + # - DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch - ENABLE_SUBPATH_BASED_ACCESS=true env_file: - ./.env diff --git a/packages/hoppscotch-backend/src/user-collection/user-collections.model.ts b/packages/hoppscotch-backend/src/user-collection/user-collections.model.ts index f3ca5c13..a1ff1408 100644 --- a/packages/hoppscotch-backend/src/user-collection/user-collections.model.ts +++ b/packages/hoppscotch-backend/src/user-collection/user-collections.model.ts @@ -58,10 +58,6 @@ export class UserCollectionRemovedData { type: ReqType; } -registerEnumType(ReqType, { - name: 'CollType', -}); - @ObjectType() export class UserCollectionExportJSONData { @Field(() => ID, { @@ -119,7 +115,3 @@ export class UserCollectionDuplicatedData { }) requests: UserRequest[]; } - -registerEnumType(ReqType, { - name: 'CollType', -});