google-cloud-functions

Update Firebase Realtime Database after specific time [duplicate]

心已入冬 提交于 2020-08-26 12:48:26
问题 This question already has answers here : Cloud Functions for Firebase trigger on time? (2 answers) Closed 2 years ago . Consider the following database in JSON format stored in firebase - "root": { "survey": { "1": { "survey_question":"Who is a better player?", "option1":"Ronaldo", "option2":"Messi", "time_posted":7854123265, "visibility":1 }, "2": { "survey_question":"Who is a better singer?", "option1":"Ed Sheeran", "option2":"Chris Martin", "time_posted":9865321245, "visibility":1 } } } I

Update Firebase Realtime Database after specific time [duplicate]

痞子三分冷 提交于 2020-08-26 12:46:39
问题 This question already has answers here : Cloud Functions for Firebase trigger on time? (2 answers) Closed 2 years ago . Consider the following database in JSON format stored in firebase - "root": { "survey": { "1": { "survey_question":"Who is a better player?", "option1":"Ronaldo", "option2":"Messi", "time_posted":7854123265, "visibility":1 }, "2": { "survey_question":"Who is a better singer?", "option1":"Ed Sheeran", "option2":"Chris Martin", "time_posted":9865321245, "visibility":1 } } } I

Update Firebase Realtime Database after specific time [duplicate]

被刻印的时光 ゝ 提交于 2020-08-26 12:46:21
问题 This question already has answers here : Cloud Functions for Firebase trigger on time? (2 answers) Closed 2 years ago . Consider the following database in JSON format stored in firebase - "root": { "survey": { "1": { "survey_question":"Who is a better player?", "option1":"Ronaldo", "option2":"Messi", "time_posted":7854123265, "visibility":1 }, "2": { "survey_question":"Who is a better singer?", "option1":"Ed Sheeran", "option2":"Chris Martin", "time_posted":9865321245, "visibility":1 } } } I

Firebase deploy error - Cannot find module 'firebase'

家住魔仙堡 提交于 2020-08-24 09:20:35
问题 I'm trying to deploy Google Cloud function triggers that trigger from db events, but when I run firebase deploy The functions aren't deployed properly and I get an error saying Error: Cannot find module firebase When I was first creating the project I could deploy functions without any issues. It's been a few days since I last deployed anything, but now I'm getting this issue on all my functions (not just my trigger functions) My function: exports.deleteNotificationOnUnlike = functions

Firebase deploy error - Cannot find module 'firebase'

这一生的挚爱 提交于 2020-08-24 09:19:38
问题 I'm trying to deploy Google Cloud function triggers that trigger from db events, but when I run firebase deploy The functions aren't deployed properly and I get an error saying Error: Cannot find module firebase When I was first creating the project I could deploy functions without any issues. It's been a few days since I last deployed anything, but now I'm getting this issue on all my functions (not just my trigger functions) My function: exports.deleteNotificationOnUnlike = functions

Cloud Functions Firebase CLI predeploy error (typescript)

本小妞迷上赌 提交于 2020-08-21 13:57:28
问题 I´m trying Cloud Functions with typescript. After successfully installed, added a trigger and tested deploy. index.ts import * as functions from 'firebase-functions'; export const createAccount = functions.auth.user().onCreate(event => { const user = event.data; console.log('user displayname', user.displayName); return; }); command firebase deploy --only functions === Deploying to 'project'... i deploying functions i functions: running predeploy script. > functions@ build D:\vmbox\project