Skip to content

Commit

Permalink
fix: misspelling of 'address' (#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeJayDev authored Oct 9, 2024
1 parent e8c6507 commit 019702f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions server/notification-providers/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Discord extends NotificationProvider {
},
{
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
value: this.extractAdress(monitorJSON),
value: this.extractAddress(monitorJSON),
},
{
name: `Time (${heartbeatJSON["timezone"]})`,
Expand Down Expand Up @@ -85,7 +85,7 @@ class Discord extends NotificationProvider {
},
{
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
value: this.extractAdress(monitorJSON),
value: this.extractAddress(monitorJSON),
},
{
name: `Time (${heartbeatJSON["timezone"]})`,
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/notification-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NotificationProvider {
* @param {?object} monitorJSON Monitor details (For Up/Down only)
* @returns {string} The extracted address based on the monitor type.
*/
extractAdress(monitorJSON) {
extractAddress(monitorJSON) {
if (!monitorJSON) {
return "";
}
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/sevenio.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SevenIO extends NotificationProvider {
return okMsg;
}

let address = this.extractAdress(monitorJSON);
let address = this.extractAddress(monitorJSON);
if (address !== "") {
address = `(${address}) `;
}
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/signl4.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SIGNL4 extends NotificationProvider {
msg,
// Source system
"X-S4-SourceSystem": "UptimeKuma",
monitorUrl: this.extractAdress(monitorJSON),
monitorUrl: this.extractAddress(monitorJSON),
};

const config = {
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Slack extends NotificationProvider {

}

const address = this.extractAdress(monitorJSON);
const address = this.extractAddress(monitorJSON);
if (address) {
actions.push({
"type": "button",
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/smtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SMTP extends NotificationProvider {

if (monitorJSON !== null) {
monitorName = monitorJSON["name"];
monitorHostnameOrURL = this.extractAdress(monitorJSON);
monitorHostnameOrURL = this.extractAddress(monitorJSON);
}

let serviceStatus = "⚠️ Test";
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/squadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Squadcast extends NotificationProvider {
data.status = "resolve";
}

data.tags["AlertAddress"] = this.extractAdress(monitorJSON);
data.tags["AlertAddress"] = this.extractAddress(monitorJSON);

monitorJSON["tags"].forEach(tag => {
data.tags[tag["name"]] = {
Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Teams extends NotificationProvider {
const payload = this._notificationPayloadFactory({
heartbeatJSON: heartbeatJSON,
monitorName: monitorJSON.name,
monitorUrl: this.extractAdress(monitorJSON),
monitorUrl: this.extractAddress(monitorJSON),
dashboardUrl: dashboardUrl,
});

Expand Down
2 changes: 1 addition & 1 deletion server/notification-providers/zoho-cliq.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ZohoCliq extends NotificationProvider {
const payload = this._notificationPayloadFactory({
monitorMessage: heartbeatJSON.msg,
monitorName: monitorJSON.name,
monitorUrl: this.extractAdress(monitorJSON),
monitorUrl: this.extractAddress(monitorJSON),
status: heartbeatJSON.status
});

Expand Down

0 comments on commit 019702f

Please sign in to comment.