Skip to content

Instantly share code, notes, and snippets.

@ramah
Created April 12, 2020 20:09
Show Gist options
  • Save ramah/8ba4cc3509b2afed0862c0c670165eaa to your computer and use it in GitHub Desktop.
Save ramah/8ba4cc3509b2afed0862c0c670165eaa to your computer and use it in GitHub Desktop.
Markdium-Basic firebase realtime trigger
import * as functions from “firebase-functions”;
export const onBenineesseAddedFunction =
functions.database
.ref(benineesesPathToWatch)
.onCreate((snapshot: database.DataSnapshot,
context: EventContext) => {
return updateCount(pathToBenineesesCounter, true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment