From 7fa4f08c005a5e44e8a5d58c298d1909f55931f5 Mon Sep 17 00:00:00 2001 From: bsquillari Date: Tue, 28 Nov 2023 20:17:28 +0000 Subject: [PATCH] Fix typos --- gateway/src/api/routes/users.py | 2 +- run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/src/api/routes/users.py b/gateway/src/api/routes/users.py index 8276f61..b53370e 100644 --- a/gateway/src/api/routes/users.py +++ b/gateway/src/api/routes/users.py @@ -15,7 +15,7 @@ async def create_users(user: UserRegister, req: Request): request_id = req.state.request_id header = {"x-api-request-id": request_id} (response, status, _) = await request( - f"{API_USERS}", "POST", json=user.dump_model(), headers=header + f"{API_USERS}", "POST", json=user.model_dump(), headers=header ) if status < 200 or status > 204: raise HTTPException(status_code=status, detail=response) diff --git a/run.sh b/run.sh index 195a593..cbda1f1 100755 --- a/run.sh +++ b/run.sh @@ -207,7 +207,7 @@ elif [ -n "$down" ]; then docker compose -f flights-domain/docker-compose.yml --env-file flights-domain/.env.prod down export API_IMAGE=$USER/user-manager:prod docker compose -f auth-domain/docker-compose.yml --env-file auth-domain/.env.prod down - export API_IMAGE=slococo/subs-manager:prod + export API_IMAGE=$USER/subs-manager:prod docker compose -f subscription-domain/docker-compose.yml --env-file subscription-domain/.env.prod down export API_IMAGE=$USER/gateway:prod docker compose -f gateway/docker-compose.yml --env-file gateway/.env.prod down @@ -237,7 +237,7 @@ else docker compose -f auth-domain/docker-compose.yml --env-file auth-domain/.env.prod up -d docker compose -f auth-domain/docker-compose.yml --env-file auth-domain/.env.prod exec auth-api python manage.py recreate_db docker compose -f auth-domain/docker-compose.yml --env-file auth-domain/.env.prod exec auth-api python manage.py seed_db - export API_IMAGE=slococo/subs-manager:prod + export API_IMAGE=$USER/subs-manager:prod docker compose -f subscription-domain/docker-compose.yml --env-file subscription-domain/.env.prod down docker compose -f subscription-domain/docker-compose.yml --env-file subscription-domain/.env.prod up -d export API_IMAGE=$USER/gateway:prod