You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help avoid a mistake like this in the future, we can define our own str-like Enum in mongodb_handler.py that has named references for the Query Selectors we use (including $in) to help enforce this as a pattern. This should also be done for the Update Operators we use, e.g. $set.
The text was updated successfully, but these errors were encountered:
Made a mistake in #429: the database query for checking if a user already applied should use
$exists
as a selector instead of"exists"
as a key.irvinehacks-site/apps/api/src/routers/user.py
Line 106 in dd68c1f
To help avoid a mistake like this in the future, we can define our own str-like
Enum
inmongodb_handler.py
that has named references for the Query Selectors we use (including$in
) to help enforce this as a pattern. This should also be done for the Update Operators we use, e.g.$set
.The text was updated successfully, but these errors were encountered: