From 99ee5341ac67be4a622058fd9e41676ae0a79397 Mon Sep 17 00:00:00 2001 From: Daniel Sousa Date: Sun, 8 May 2022 07:28:13 +0100 Subject: [PATCH 1/2] Fix paths on docker-compose file --- backend/src/modules/boards/schemas/board.schema.ts | 2 +- backend/src/modules/teams/schemas/teams.schema.ts | 2 +- docker-compose.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/modules/boards/schemas/board.schema.ts b/backend/src/modules/boards/schemas/board.schema.ts index 5c5664306..120025faa 100644 --- a/backend/src/modules/boards/schemas/board.schema.ts +++ b/backend/src/modules/boards/schemas/board.schema.ts @@ -64,7 +64,7 @@ export default class Board { export const BoardSchema = SchemaFactory.createForClass(Board); -BoardSchema.plugin(leanVirtualsPlugin); +// BoardSchema.plugin(leanVirtualsPlugin); BoardSchema.virtual('users', { ref: 'BoardUser', diff --git a/backend/src/modules/teams/schemas/teams.schema.ts b/backend/src/modules/teams/schemas/teams.schema.ts index e9ad951cb..ee37dd4ee 100644 --- a/backend/src/modules/teams/schemas/teams.schema.ts +++ b/backend/src/modules/teams/schemas/teams.schema.ts @@ -16,7 +16,7 @@ export default class Team { export const TeamSchema = SchemaFactory.createForClass(Team); -TeamSchema.plugin(leanVirtualsPlugin); +// TeamSchema.plugin(leanVirtualsPlugin); TeamSchema.virtual('users', { ref: 'TeamUser', diff --git a/docker-compose.yaml b/docker-compose.yaml index 280c086e1..b85ac1b04 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,7 @@ services: backend: build: context: . - dockerfile: backend/Dockerfile + dockerfile: backend/docker/prod/Dockerfile # set image name image: dc-backend @@ -39,7 +39,7 @@ services: frontend: build: context: . - dockerfile: frontend/Dockerfile + dockerfile: frontend/docker/prod/Dockerfile args: - NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL:-http://localhost:3200} - NEXT_PUBLIC_NEXTAUTH_URL=${NEXT_PUBLIC_NEXTAUTH_URL:-http://localhost:3000} From 615e00227e1b3b5e37205b9b6d9ace5c07937e0e Mon Sep 17 00:00:00 2001 From: Daniel Sousa Date: Sun, 8 May 2022 07:32:03 +0100 Subject: [PATCH 2/2] Remove comments on schema --- backend/src/modules/boards/schemas/board.schema.ts | 2 +- backend/src/modules/teams/schemas/teams.schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/modules/boards/schemas/board.schema.ts b/backend/src/modules/boards/schemas/board.schema.ts index 120025faa..5c5664306 100644 --- a/backend/src/modules/boards/schemas/board.schema.ts +++ b/backend/src/modules/boards/schemas/board.schema.ts @@ -64,7 +64,7 @@ export default class Board { export const BoardSchema = SchemaFactory.createForClass(Board); -// BoardSchema.plugin(leanVirtualsPlugin); +BoardSchema.plugin(leanVirtualsPlugin); BoardSchema.virtual('users', { ref: 'BoardUser', diff --git a/backend/src/modules/teams/schemas/teams.schema.ts b/backend/src/modules/teams/schemas/teams.schema.ts index ee37dd4ee..e9ad951cb 100644 --- a/backend/src/modules/teams/schemas/teams.schema.ts +++ b/backend/src/modules/teams/schemas/teams.schema.ts @@ -16,7 +16,7 @@ export default class Team { export const TeamSchema = SchemaFactory.createForClass(Team); -// TeamSchema.plugin(leanVirtualsPlugin); +TeamSchema.plugin(leanVirtualsPlugin); TeamSchema.virtual('users', { ref: 'TeamUser',