Skip to content

Commit ff41fee

Browse files
add parameters in method on_snapshot of DocumentReference class
1 parent 9023477 commit ff41fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/google/cloud/firestore_v1/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def on_snapshot(self, callback):
512512
db = firestore_v1.Client()
513513
collection_ref = db.collection(u'users')
514514
515-
def on_snapshot(document_snapshot):
515+
def on_snapshot(document_snapshot, changes, read_time):
516516
doc = document_snapshot
517517
print(u'{} => {}'.format(doc.id, doc.to_dict()))
518518

0 commit comments

Comments
 (0)