I wrote below trigger
exports.onNewGameRequest = onValueCreated(
{ref: "/game_requests/{uid}", region: "europe-west1"},
async (event) => {
// Grab the current value of what was written to the Realtime Database.
const original = event.data.val();
console.log("onNewGameRequest", event.params.pushId, original);
// make matches
return await makeMatches();
},);
It never gets executed when I insert a new entry to “game_requests” collection.
Any ideas why?
2