Fix a typo in my script

This commit is contained in:
Marshall Polaris 2022-08-18 12:49:01 -07:00
parent c37997bcb7
commit 06ced7042d

View File

@ -8,7 +8,7 @@ if (require.main === module) {
const firestore = app.firestore() const firestore = app.firestore()
const commentsRef = firestore.collectionGroup('comments') const commentsRef = firestore.collectionGroup('comments')
commentsRef.get().then(async (commentsSnaps) => { commentsRef.get().then(async (commentsSnaps) => {
log(`Loaded ${commentsSnaps.size} contracts.`) log(`Loaded ${commentsSnaps.size} comments.`)
const needsFilling = commentsSnaps.docs.filter((ct) => { const needsFilling = commentsSnaps.docs.filter((ct) => {
return !('commentType' in ct.data()) return !('commentType' in ct.data())
}) })