Skip to content

Commit 33bc21b

Browse files
Update index.js
1 parent e325266 commit 33bc21b

File tree

1 file changed

+1
-1
lines changed
  • firestore/extend-with-functions/functions

1 file changed

+1
-1
lines changed

firestore/extend-with-functions/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function readingData() {
8787
const newValue = change.after.data();
8888

8989
// ...or the previous value before this update
90-
const previousValue = change.after.data();
90+
const previousValue = change.before.data();
9191
});
9292
// [END reading_data]
9393
}

0 commit comments

Comments
 (0)