Skip to content

Commit

Permalink
Fixing API error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey committed Dec 31, 2023
1 parent d3b7c99 commit 3fd15e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erm.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def setup_hook(self) -> None:
elif environment == "PRODUCTION":
self.db = self.mongo["erm"]
elif environment == "ALPHA":
self.db = self.mongo['erm']
self.db = self.mongo['alpha']
else:
raise Exception("Invalid environment")

Expand Down
2 changes: 1 addition & 1 deletion utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def __init__(self, bot):

async def start_server(self):
api.include_router(APIRoutes(self.bot).router)
self.config = uvicorn.Config("utils.api:api", port=5000, log_level="debug", host="127.0.0.1")
self.config = uvicorn.Config("utils.api:api", port=5000, log_level="debug", host="0.0.0.0")
self.server = uvicorn.Server(self.config)
await self.server.serve()

Expand Down

0 comments on commit 3fd15e3

Please sign in to comment.