Skip to content

Commit

Permalink
Merge pull request #24 from LeandroMAcosta/patch-1
Browse files Browse the repository at this point in the history
Update chatroom_repo.dart
  • Loading branch information
Kennygunderman committed May 12, 2021
2 parents b4207a8 + 89c36fe commit a74d03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data/repo/chatroom_repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ChatRoomRepo {
//final int currentSent = doc['snacks_sent'];
//_ref.doc(chatRoomId).update({'snacks_sent': currentSent + 1});

_ref.doc(chatRoomId).update({'snacks_sent': FieldValue.increment(1});
_ref.doc(chatRoomId).update({'snacks_sent': FieldValue.increment(1)});
}

Stream<List<ChatRoom>> getChatRooms() async* {
Expand Down

0 comments on commit a74d03d

Please sign in to comment.