Skip to content

Commit

Permalink
🐛 Fixed missing return. Fixed postgres version on compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbelfanti committed Oct 4, 2024
1 parent 0fa9da8 commit 2d5b037
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile_db
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CMD ["sh", "-c", " \
echo ' ' && \
echo 'Criteria initialization: started' && \
curl -X POST http://ahbcc:${API_PORT}/criteria/init/v1 && \
echo ' ' && \
echo 'Criteria initialization: finished' && \
echo ' ' \
"]
1 change: 1 addition & 0 deletions cmd/api/search/criteria/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func EnqueueHandlerV1(enqueueCriteria Enqueue) http.HandlerFunc {
case errors.Is(err, AnExecutionOfThisCriteriaIDIsAlreadyEnqueued):
log.Error(ctx, err.Error())
http.Error(w, ExecutionWithSameCriteriaIDAlreadyEnqueued, http.StatusConflict)
return
default:
log.Error(ctx, err.Error())
http.Error(w, FailedToEnqueueCriteria, http.StatusInternalServerError)
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:
restart: "no"

postgres_db:
image: postgres:latest
image: postgres:16
container_name: postgres
ports:
- 1234:${DB_PORT:-5432}
Expand Down

0 comments on commit 2d5b037

Please sign in to comment.