Skip to content

Commit faf881b

Browse files
authored
docs(firestore): remove await before transaction.update (#5273)
Since it does not return a promise, there is no need to await it. This could lead to a confusion among users since `await` usually indicates a promise.
1 parent 776a39a commit faf881b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/firestore/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function onPostLike(postId) {
546546
throw 'Post does not exist!';
547547
}
548548

549-
await transaction.update(postReference, {
549+
transaction.update(postReference, {
550550
likes: postSnapshot.data().likes + 1,
551551
});
552552
});

0 commit comments

Comments
 (0)