Skip to content

Commit

Permalink
fix failing server test
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Oct 17, 2023
1 parent 838dda2 commit c8a9a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cp/cem.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def send_notification(_type, user, id_key: Literal["_id", "email"] = "_id"):
"object_id": str(user[id_key]),
"platform": app.config.get("CEM_PLATFORM"),
}
if user.get("company"):
if user.get("company") and id_key == "_id":
payload["company"] = str(user["company"])
try:
session.patch(
Expand Down

0 comments on commit c8a9a1c

Please sign in to comment.