Skip to content

Commit

Permalink
style: Renamed mongo database
Browse files Browse the repository at this point in the history
Renamed mongo database from app to unipoll-api
  • Loading branch information
mike-pisman committed Sep 27, 2023
1 parent e8df4da commit bcd412d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/unipoll_api/mongo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
settings = get_settings()

client = motor.motor_asyncio.AsyncIOMotorClient(
settings.mongodb_url, uuidRepresentation="standard"
host=settings.mongodb_url,
uuidRepresentation="standard",
)
mainDB = client.app

mainDB = client["unipoll-api"]

documentModels = [
Documents.AccessToken,
Expand Down

0 comments on commit bcd412d

Please sign in to comment.