From 38064b36c7b24dfca48888aa8e97d43c829ae837 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Thu, 22 Apr 2021 10:16:45 -0700 Subject: [PATCH] proper fix for the previous --- backend/app/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api.py b/backend/app/api.py index 73a8c86..80c0031 100644 --- a/backend/app/api.py +++ b/backend/app/api.py @@ -172,7 +172,7 @@ async def add_user( encrypted = bcrypt.hash(password) await db.add_user( Annotator( - id=ObjectId(), + _id=ObjectId(), name=name, username=username, designation=designation,