Skip to content Skip to sidebar Skip to footer

Pub Sub Cloud Function - Async Await

Trying to accomplish the following via a scheduled Firebase Function: Fetch Firestore Collection Delete Collection Make Get Request to External API Write Get Request results to Fi

Solution 1:

For the ESLint issue with =>, try setting the ecmaVersion to 8 in your ESLint config.

module.exports = {
  root: true,
  env: {
    es6: true,
    node: true,
  },
  extends: [
    "eslint:recommended",
    "google",
  ],
  parserOptions: {
    ecmaVersion: 8
  }
};

When I run the emulator suite locally, I get no errors, but the DB does not update.

Are you using Firestore emulator? If yes, then data will be added there and not in production so you can see the data in emulator only.


Post a Comment for "Pub Sub Cloud Function - Async Await"