-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Description
Version info
firebase-functions: "^0.5"
firebase-admin: "^4.1.2"
Test case
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.functionName = functions.database.ref('/Something/{somethingId}').onWrite(event => {
const snapshot = event.data;
const something = snapshot.val();
if (something) {
console.log('Cloud function executing...');
}
});
Steps to reproduce
Add object under "Something" reference and look at the console when the message "Cloud function executing...".
Were you able to successfully deploy your functions?
No error message when I deployed the function.
Expected behavior
The message should appear directly when the object is added to the database.
Actual behavior
The message is appearing 15s after the object appear in database.
itaydr
Metadata
Metadata
Assignees
Labels
No labels