This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// one can also use Google Cloud Firestore library, | |
// with a slight change in semantics | |
import { firestore } from 'firebase-admin'; | |
import { EventContext, runWith } from 'firebase-functions'; | |
import { promisify } from 'util'; | |
const eventCollection = 'function-events'; | |
enum EventStatus { | |
RUNNING = 'running', |