mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
fixed linting issues
This commit is contained in:
parent
2a556e714f
commit
4b0e7de3e4
|
@ -102,7 +102,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
||||||
throw new Error("No slug?");
|
throw new Error("No slug?");
|
||||||
}
|
}
|
||||||
const config = await statusPage.toJSON();
|
const config = await statusPage.toJSON();
|
||||||
config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === '1';
|
config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1";
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
config,
|
config,
|
||||||
|
@ -168,7 +168,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
||||||
statusPage.show_certificate_expiry = config.showCertificateExpiry;
|
statusPage.show_certificate_expiry = config.showCertificateExpiry;
|
||||||
statusPage.modified_date = R.isoDateTime();
|
statusPage.modified_date = R.isoDateTime();
|
||||||
statusPage.google_analytics_tag_id = config.googleAnalyticsId;
|
statusPage.google_analytics_tag_id = config.googleAnalyticsId;
|
||||||
if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1"){
|
if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1") {
|
||||||
statusPage.custom_html = config.customHtml;
|
statusPage.custom_html = config.customHtml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue