prescottprue/fireadmin

View on GitHub
functions/src/cleanupProject/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function removeCollection has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function removeCollection(
  collectionSnap: admin.firestore.CollectionReference
): Promise<null | any[]> {
  // TODO: Handle deleting documents in batches
  const [getErr, collectionQueryResult] = await to(collectionSnap.get())
Severity: Minor
Found in functions/src/cleanupProject/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status