From 9ef50874ffbfc81b7da2b87f624b9330b7446195 Mon Sep 17 00:00:00 2001 From: Dmitry Grinko Date: Fri, 10 May 2024 00:23:37 -0700 Subject: [PATCH] init --- .github/workflows/backend.yml | 3 ++- .github/workflows/frontend.yml | 2 +- backend/src/app.controller.ts | 1 - frontend/redux/initial-states.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index d8dd34d..4364978 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -53,5 +53,6 @@ jobs: ECR_REPOSITORY: ${{ secrets.BACKEND_ECR_REPOSITORY }} IMAGE_TAG: ${{ steps.increment-git-tag.outputs.git-tag }} run: | - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG backend + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./backend docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + working-directory: backend \ No newline at end of file diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2194887..051074b 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -43,6 +43,6 @@ jobs: ECR_REPOSITORY: ${{ secrets.FRONTEND_ECR_REPOSITORY }} IMAGE_TAG: ${{ steps.increment-git-tag.outputs.git-tag }} run: | - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./frontend docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG working-directory: frontend \ No newline at end of file diff --git a/backend/src/app.controller.ts b/backend/src/app.controller.ts index 5660767..30ee587 100644 --- a/backend/src/app.controller.ts +++ b/backend/src/app.controller.ts @@ -74,7 +74,6 @@ export class AppController { // await this.appGateway.sendUserList(); // Get all users by adminId - const records = await this.dynamodbUserService.getRecords(); // TODO: now we take all users but we need to take by adminId return this.helpers.countImagesByPerson(records); diff --git a/frontend/redux/initial-states.ts b/frontend/redux/initial-states.ts index 37d4bce..a4a2b72 100644 --- a/frontend/redux/initial-states.ts +++ b/frontend/redux/initial-states.ts @@ -67,4 +67,4 @@ interface initialAlbumState { export const initialAlbumState: initialAlbumState = { adminId: null, categories: [] -}; \ No newline at end of file +};