Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
fix notification url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glazec committed Feb 22, 2020
1 parent abc85d9 commit 20a8d88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ async function main() {
console.info("Trigger Netlify deploy");

//determine whether to push web notification
if (newPostOnlineSite.id ==newPostRepo.id) {
if (newPostOnlineSite.id != newPostRepo.id) {
// push new Post notification

payload = {
title: newPostRepo.title,
message: newPostRepo.summary,
target_url: "posts/"+newPostRepo.id
};
console.log(payload)
const response = await fetch(
"https://app.webpushr.com/api/v1/notification/send/all",
{
Expand Down

0 comments on commit 20a8d88

Please sign in to comment.