SupportVol / BackEnd

Use const declarations for variables that are never reassigned JS-0242
Anti-pattern
Minor
5 months ago5 months old
'docRef' is never reassigned. Use 'const' instead
 36      }
 37    }
 38    let docRef
 39    docRef = this.uid ? collectionRef.doc(this.uid) : collectionRef.doc() 40    console.log(data)
 41    await docRef.set(data)
 42    const docID = await getDocumentIdByContent(collectionRef, data)