Skip to content

Commit 65c11c7

Browse files
committed
NO-JIRA: add logging
1 parent b1fde26 commit 65c11c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/firebase_functions/firestore_fn.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ def _firestore_endpoint_handler(
211211
func = _core._with_init(func)
212212

213213
if event_type.endswith(".withAuthContext"):
214-
event_auth_type = event_attributes["auth_type"]
215-
event_auth_id = event_attributes["auth_id"]
214+
console.log("event_type: ", event_type)
215+
console.log("event_attributes: ", event_attributes);
216+
event_auth_type = event_attributes["authtype"]
217+
event_auth_id = event_attributes["authid"]
216218
database_event_with_auth_context = AuthEvent(**vars(database_event),
217219
auth_type=event_auth_type,
218220
auth_id=event_auth_id)

0 commit comments

Comments
 (0)