Create notifications.ts
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// import * as functions from "firebase-functions";
|
||||
|
||||
// exports.inviteUserToTeam = functions.firestore
|
||||
// .document('teamMembers/{userId}')
|
||||
// .onCreate((snap, context) => {
|
||||
// // Get an object representing the document
|
||||
// // e.g. {'name': 'Marie', 'age': 66}
|
||||
// const newValue = snap.data();
|
||||
|
||||
// // access a particular field as you would any JS property
|
||||
// const name = newValue.name;
|
||||
|
||||
// // perform desired operations ...
|
||||
// });
|
||||
Reference in New Issue
Block a user