Skip to content

Commit

Permalink
removed scheduled poke function
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmichels committed Jun 20, 2020
1 parent c2e9329 commit 331793d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions firebase/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,6 @@ const https = require('postman-request');
// response.send("Hello from Firebase!");
// });

exports.scheduledFunction = functions.pubsub.schedule('every 1 minutes').onRun((context) => {
https.post({
url:'https://us-central1-lol-boosted.cloudfunctions.net/sendNotification',
json:{
'event':'poke'
}
},(err,httpsRes,body)=>{
if(err){
// console.error("error:");
console.error(err);
return;
}
else{
// console.log("notification sent");
return;
}
})
return null;
});

exports.sendNotification = functions.https.onRequest((request, response) => {
// console.log("requests:");
// console.log(request.body);
Expand Down

0 comments on commit 331793d

Please sign in to comment.