Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsarge committed May 29, 2024
1 parent f94b85e commit 425a3f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/src/definitions/common/statistics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import { Timestamp } from "firebase-admin/firestore"
import { TIME } from "../../utils/time"
import { CheckerData } from "../../types"

const db = admin.firestore()

function checkAccuracy(
parentMessageSnap: admin.firestore.DocumentSnapshot<admin.firestore.DocumentData>,
voteRequestSnap: admin.firestore.DocumentSnapshot<admin.firestore.DocumentData>
) {
const db = admin.firestore()
const isLegacy = voteRequestSnap.get("truthScore") === undefined
const isParentMessageAssessed = parentMessageSnap.get("isAssessed") ?? false
const parentMessageCategory = parentMessageSnap.get("primaryCategory") ?? null
Expand Down

0 comments on commit 425a3f5

Please sign in to comment.