Skip to content

Commit

Permalink
Update chatroom_repo.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroMAcosta committed May 8, 2021
1 parent b4207a8 commit 89c36fe
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 89c36fe

Please sign in to comment.