Skip to content

Commit 94daced

Browse files
committed
fix new post notify error
1 parent ce032c7 commit 94daced

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

_tools/newpostcheck.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,18 @@ const fetch = require("node-fetch");
4545
console.log(dataString);
4646

4747
var options = {
48-
url: 'https://app.webpushr.com/api/v1/notification/send/all',
48+
url: 'https://api.webpushr.com/v1/notification/send/all',
4949
method: 'POST',
5050
headers: headers,
5151
body: dataString
5252
};
5353

5454
function callback(error, response, body) {
5555

56-
if (response.statusCode !== 200) {
56+
if (!error && response.statusCode == 200) {
5757
console.log(body);
5858
} else {
59-
console.log(response);
60-
console.log(body);
59+
console.log(error);
6160
}
6261
}
6362

content/money/passive-income-protfolio/202105.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "慢慢变富 # 组合月报(202105)"
33
date: 2021-06-05
4-
draft: true
4+
draft: false
55
series: ["投资实证"]
66
tags: ["投资组合", "指数定投", "ETF"]
77
keywords: "被动收入投资组合、指数定投、ETF定投"

0 commit comments

Comments
 (0)