From 075f01cf4ffafb170b23ce5b367bb42aea9deb1a Mon Sep 17 00:00:00 2001 From: Henry Brink Date: Tue, 18 Jun 2024 14:56:05 +0200 Subject: [PATCH] Mount ".env" as volume (#242) * Update docker-compose.yml * Update docker-compose.yml * fix: test failing when machine too slow Signed-off-by: Henry Brink --------- Signed-off-by: Henry Brink --- backend/src/app/goals/goal.service.spec.ts | 2 +- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/goals/goal.service.spec.ts b/backend/src/app/goals/goal.service.spec.ts index d2bb83e..410806c 100644 --- a/backend/src/app/goals/goal.service.spec.ts +++ b/backend/src/app/goals/goal.service.spec.ts @@ -79,7 +79,7 @@ describe('GoalService', () => { target: 200, value: 100, metric: 'steps', - synced: dayjs().subtract(2, 'hours').toDate(), + synced: goal.synced, } as Goal); const goals = await goalService.getGoalsForUser( diff --git a/docker-compose.yml b/docker-compose.yml index e13b366..b34aa52 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - backend volumes: - database:/usr/src/app/database + - ${PWD}/.env:/usr/src/app/.env webserver: build: ./frontend ports: