mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-17 10:17:10 -05:00
Fix eslint warnings
This commit is contained in:
parent
aa8454b73f
commit
72c16c3aa2
@ -2,7 +2,6 @@ const fs = require("fs");
|
|||||||
const { R } = require("redbean-node");
|
const { R } = require("redbean-node");
|
||||||
const { setSetting, setting } = require("./util-server");
|
const { setSetting, setting } = require("./util-server");
|
||||||
const { log, sleep } = require("../src/util");
|
const { log, sleep } = require("../src/util");
|
||||||
const dayjs = require("dayjs");
|
|
||||||
const knex = require("knex");
|
const knex = require("knex");
|
||||||
const { PluginsManager } = require("./plugins-manager");
|
const { PluginsManager } = require("./plugins-manager");
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class Opsgenie extends NotificationProvider {
|
|||||||
*/
|
*/
|
||||||
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
||||||
let opsgenieAlertsUrl;
|
let opsgenieAlertsUrl;
|
||||||
let priority = (notification.opsgeniePriority == "") ? 3 : notification.opsgeniePriority;
|
let priority = (!notification.opsgeniePriority) ? 3 : notification.opsgeniePriority;
|
||||||
const textMsg = "Uptime Kuma Alert";
|
const textMsg = "Uptime Kuma Alert";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -248,7 +248,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { useToast } from "vue-toastification";
|
import { useToast } from "vue-toastification";
|
||||||
import VueMultiselect from "vue-multiselect";
|
import VueMultiselect from "vue-multiselect";
|
||||||
import dayjs from "dayjs";
|
|
||||||
import Datepicker from "@vuepic/vue-datepicker";
|
import Datepicker from "@vuepic/vue-datepicker";
|
||||||
import { timezoneList } from "../util-frontend";
|
import { timezoneList } from "../util-frontend";
|
||||||
import cronstrue from "cronstrue/i18n";
|
import cronstrue from "cronstrue/i18n";
|
||||||
|
Loading…
Reference in New Issue
Block a user