functions/src/cleanupProject/index.ts
Function removeCollection
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function removeCollection(
collectionSnap: admin.firestore.CollectionReference
): Promise<null | any[]> {
// TODO: Handle deleting documents in batches
const [getErr, collectionQueryResult] = await to(collectionSnap.get())