Closed snapcat closed 2 years ago
changed records = db.user to db.users in db_init.py file.
Resolved
Discussion:
Leila Moran — 11/03/2021 Is the collection "total_records" still being used somewhere? If not, it'd be better to delete it I think.
Peeyush — 11/03/2021 in which file ?
Leila Moran — 11/03/2021 I'm not sure? I'm looking at the collections on MongoDB.
Peeyush — 11/03/2021 yeah we don't have total_records anywhere in backend code
Peeyush — 11/03/2021 You can delete it
Leila Moran — 11/03/2021 Done! Are we using db.register?
Peeyush — 11/03/2021 no we are only using feature-hunt
Leila Moran — 11/03/2021 I don't think we're using feature-hunt.db anywhere either.
Peeyush — 11/03/2021 we are not using db and user_projects and also not user only users and user_projects are being used
"user" collection used in backend-new/db_init.py
"users" collection used in backend/app/init.py
This may cause significant confusion down the road if left unaddressed.
Suggested fix: delete or rename one of the collections and/or update the relevant files.