DishDelish/dishdelish-app

View on GitHub
functions/src/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function sendNotification has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  .onCreate(async (data, context) => {
    const notificationId = context.params.notificationId;
    const notif = data.val();
    const getDeviceTokensPromise = admin.database()
      .ref(`/users/${notif.receiver}/tokens`).once("value");
Severity: Minor
Found in functions/src/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status