mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-20 23:46:39 -04:00
Compare commits
3 Commits
7ce61677cb
...
d3144dcd61
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d3144dcd61 | ||
![]() |
9b78f6c988 | ||
![]() |
10a518e72e |
13
db/knex_migrations/2025-03-25-0127-fix-5721.js
Normal file
13
db/knex_migrations/2025-03-25-0127-fix-5721.js
Normal file
@ -0,0 +1,13 @@
|
||||
// Fix #5721: Change proxy port column type to integer to support larger port numbers
|
||||
exports.up = function (knex) {
|
||||
return knex.schema
|
||||
.alterTable("proxy", function (table) {
|
||||
table.integer("port").alter();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function (knex) {
|
||||
return knex.schema.alterTable("proxy", function (table) {
|
||||
table.smallint("port").alter();
|
||||
});
|
||||
};
|
@ -17,15 +17,18 @@ class PushPlus extends NotificationProvider {
|
||||
const okMsg = "Sent Successfully.";
|
||||
const url = "https://www.pushplus.plus/send";
|
||||
try {
|
||||
await axios.post(url, {
|
||||
const config = {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
};
|
||||
const params = {
|
||||
"token": notification.pushPlusSendKey,
|
||||
"title": this.checkStatus(heartbeatJSON, monitorJSON),
|
||||
"content": msg,
|
||||
"template": "html"
|
||||
}, { headers: { "Content-Type": "application/json" } }
|
||||
);
|
||||
return okMsg;
|
||||
|
||||
};
|
||||
await axios.post(url, params, config);
|
||||
} catch (error) {
|
||||
this.throwGeneralAxiosError(error);
|
||||
console.error("PushPlus Error:", error.response?.data || error.message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user