Skip to content

Commit

Permalink
fix(bff): remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
vbeaucha committed Aug 11, 2023
1 parent 0b2f3a9 commit 2289f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions BFF/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"ogree-bff/models"
"ogree-bff/services"
"os"
Expand All @@ -34,10 +34,9 @@ func GetAPIInfo() ([]models.API) {
if err != nil {
fmt.Println(err)
}
fmt.Println("Successfully Opened users.json")
// defer the closing of our jsonFile so that we can parse it later on
defer jsonFile.Close()
byteValue, _ := ioutil.ReadAll(jsonFile)
byteValue, _ := io.ReadAll(jsonFile)
var api []models.API
json.Unmarshal(byteValue, &api)

Expand Down
5 changes: 0 additions & 5 deletions deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ services:
environment:
SWAGGER_JSON_URL: https://raw.githubusercontent.com/ditrit/OGrEE-Core/${IMAGE_TAG}/BFF/swagger.json
restart: on-failure:10
depends_on:
- ogree_api

ogree_webapp:
build:
Expand All @@ -75,8 +73,6 @@ services:
- ARANGO_ROOT_PASSWORD=${ARANGO_PASS}
volumes:
- arangodb-persist:/var/lib/arangodb3
ports:
- ${ARANGO_PORT}:8529
restart: on-failure:10


Expand Down Expand Up @@ -123,6 +119,5 @@ services:
volumes:
db:
arangodb-persist:
external: true


0 comments on commit 2289f6e

Please sign in to comment.