File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 33
33
from firebase_functions .options import FirestoreOptions
34
34
from firebase_functions .core import Change
35
35
36
+ from firebase_functions import logger
37
+
36
38
_event_type_written = "google.cloud.firestore.document.v1.written"
37
39
_event_type_created = "google.cloud.firestore.document.v1.created"
38
40
_event_type_updated = "google.cloud.firestore.document.v1.updated"
@@ -129,13 +131,15 @@ def _firestore_endpoint_handler(
129
131
raise TypeError (f"Firestore: Cannot parse event payload of data type "
130
132
f"'{ actual_type } ' and content type '{ content_type } '." )
131
133
134
+ logger .debug ("Event Attributes" , event_attributes = event_attributes )
135
+
132
136
event_location = event_attributes ["location" ]
133
137
event_project = event_attributes ["project" ]
134
138
event_namespace = event_attributes ["namespace" ]
135
139
event_document = event_attributes ["document" ]
136
140
event_database = event_attributes ["database" ]
137
- event_auth_type = event_attributes ["authType " ]
138
- event_auth_id = event_attributes ["authId " ]
141
+ event_auth_type = event_attributes ["authtype " ]
142
+ event_auth_id = event_attributes ["authid " ]
139
143
140
144
time = event_attributes ["time" ]
141
145
event_time = _util .timestamp_conversion (time )
You can’t perform that action at this time.
0 commit comments