Fix a typo in my script
This commit is contained in:
parent
c37997bcb7
commit
06ced7042d
|
@ -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())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user