mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 09:06:44 +00:00
14 lines
348 B
JavaScript
14 lines
348 B
JavaScript
/**
|
|
* Background Cloud Function to be triggered by Firestore.
|
|
*
|
|
* @param {object} event The Cloud Functions event.
|
|
* @param {function} callback The callback function.
|
|
*/
|
|
exports.helloFirestore = function (event, callback) {
|
|
const messageId = event.params.messageId;
|
|
|
|
console.log(`Received message ${messageId}`);
|
|
|
|
callback();
|
|
};
|