Skip to content

Commit

Permalink
Merge pull request #6 from VGVentures/fix/solved-words-count
Browse files Browse the repository at this point in the history
fix: solved word count
  • Loading branch information
jsgalarraga authored Jun 28, 2024
2 parents ae99022 + c3e646b commit 6445f37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const resetGame = onDocumentCreated(
const db = getFirestore();

const solvedWordsCollection = db.collection("solvedWords");
const solvedWordsCount = await solvedWordsCollection.count().get();;
const solvedWordsCountSnapshot = await solvedWordsCollection.count().get();
const solvedWordsCount = solvedWordsCountSnapshot.data().count;

const boardInfoCollection = db.collection("boardInfo");
const totalWordsCountDocument = boardInfoCollection.doc("totalWordsCount");
Expand Down

0 comments on commit 6445f37

Please sign in to comment.