Skip to content

Commit

Permalink
removed unnecessary TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarvellas committed Oct 26, 2023
1 parent 002860b commit 68a6633
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion database/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ async def get_user(cls, uuid: str) -> Optional[MongoMappingType]:
@classmethod
async def create_user(cls, uuid: str, username: str, vendor_type: str) -> bool:
query = cls._new_user(uuid, username, vendor_type)
# TODO catch error if user already exists
ret: pymongo.results.InsertOneResult = await cls.get_collection().insert_one(query)
return ret.acknowledged

Expand Down

0 comments on commit 68a6633

Please sign in to comment.