Create notifications.ts

This commit is contained in:
Arjun Patel
2022-01-27 20:11:09 -08:00
parent ed1e68b5e1
commit d960a9470d
+14
View File
@@ -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 ...
// });