diff --git a/5/ecolyo.b556837f1ee06bb34d9a.js b/5/ecolyo.75100499f2844a051175.js similarity index 99% rename from 5/ecolyo.b556837f1ee06bb34d9a.js rename to 5/ecolyo.75100499f2844a051175.js index 30f379041fc19d4daab19e460614941e9dccb5f8..a19363317d5bdaca97ad22afa2a84b9781962345 100644 --- a/5/ecolyo.b556837f1ee06bb34d9a.js +++ b/5/ecolyo.75100499f2844a051175.js @@ -265,7 +265,7 @@ var ConnectionService = /*#__PURE__*/function () { case 3: konnector = _context.sent; - if (!(!konnector || !konnector.slug)) { + if (konnector !== null && konnector !== void 0 && konnector.slug) { _context.next = 10; break; } @@ -303,7 +303,7 @@ var ConnectionService = /*#__PURE__*/function () { case 14: account = _context.sent; - if (!(!account || !account._id)) { + if (account !== null && account !== void 0 && account._id) { _context.next = 21; break; } diff --git a/app/ecolyo.422c22427eb5d01c5808.js b/app/ecolyo.dddba1deded30b73443d.js similarity index 99% rename from app/ecolyo.422c22427eb5d01c5808.js rename to app/ecolyo.dddba1deded30b73443d.js index 95f012a449937cbfbea77c93fd832c30b3307a23..35e8e47a9b844144a0201369ab2a6ab8d61ff3ba 100644 --- a/app/ecolyo.422c22427eb5d01c5808.js +++ b/app/ecolyo.dddba1deded30b73443d.js @@ -64,7 +64,7 @@ /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { -/******/ return __webpack_require__.p + "" + ({}[chunkId]||chunkId) + "/ecolyo." + {"1":"c44aefc530d1de68ee3f","3":"673e8ddd696663d6ffcf","4":"fd60d6605197e95bca7c","5":"b556837f1ee06bb34d9a","6":"68590aa155e034150cca","7":"d2a6fc631880361b47a0","8":"5a104e5906433ba909f2","9":"d4e0f8345c64c54574af"}[chunkId] + ".js" +/******/ return __webpack_require__.p + "" + ({}[chunkId]||chunkId) + "/ecolyo." + {"1":"c44aefc530d1de68ee3f","3":"673e8ddd696663d6ffcf","4":"fd60d6605197e95bca7c","5":"75100499f2844a051175","6":"68590aa155e034150cca","7":"d2a6fc631880361b47a0","8":"5a104e5906433ba909f2","9":"d4e0f8345c64c54574af"}[chunkId] + ".js" /******/ } /******/ /******/ // The require function @@ -9226,7 +9226,7 @@ var ConsumptionDataManager = /*#__PURE__*/function () { } return getMaxLoad; - }() // fetch last dataload available for a given fluid - return the daily data + }() // fetch last dataload available for a given fluid - return the daily data }, { key: "getLastDataload", diff --git a/index.html b/index.html index ec7d60f16a0fc6a9b1b658759a926092837da98d..f850d65de9b468b00b81c131284003797efa331e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.d332a37d84cf028b68a7.js"></script><script src="app/ecolyo.422c22427eb5d01c5808.js"></script></div></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.d332a37d84cf028b68a7.js"></script><script src="app/ecolyo.dddba1deded30b73443d.js"></script></div></body></html> \ No newline at end of file diff --git a/services/aggregatorUsageEvents/ecolyo.js b/services/aggregatorUsageEvents/ecolyo.js index 636abaaca68aef85e4668d653f6783c606704f5d..a52044bff6b7d4e4729e9e4f302f794010d98ec3 100644 --- a/services/aggregatorUsageEvents/ecolyo.js +++ b/services/aggregatorUsageEvents/ecolyo.js @@ -96640,7 +96640,7 @@ class ConsumptionDataManager { const max = await this._queryRunnerService.fetchFluidMaxData(maxTimePeriod, timeStep, fluidTypes[0], withDate); return max; } - } // fetch last dataload available for a given fluid - return the daily data + } // fetch last dataload available for a given fluid - return the daily data async getLastDataload(fluidTypes) { diff --git a/services/consumptionAlert/ecolyo.js b/services/consumptionAlert/ecolyo.js index 93d74ad0e4a055effa195167e1166e6f794ef9ae..4f5dd09ad95a107e3d92d1b34f55d18136833cc1 100644 --- a/services/consumptionAlert/ecolyo.js +++ b/services/consumptionAlert/ecolyo.js @@ -94314,7 +94314,7 @@ class ConsumptionDataManager { const max = await this._queryRunnerService.fetchFluidMaxData(maxTimePeriod, timeStep, fluidTypes[0], withDate); return max; } - } // fetch last dataload available for a given fluid - return the daily data + } // fetch last dataload available for a given fluid - return the daily data async getLastDataload(fluidTypes) { @@ -98251,7 +98251,7 @@ const consumptionLimit = __webpack_require__(1572); const logStack = _cozyLogger.default.namespace('alert'); -// Only monitoring WATER fluid for now +// Only monitoring WATER fluid for now const consumptionAlert = async ({ client }) => { @@ -98260,7 +98260,7 @@ const consumptionAlert = async ({ const consumptionService = new _consumption.default(client); const userProfil = await upm.getProfile(); - if (!userProfil || !userProfil.sendConsumptionAlert || userProfil.waterDailyConsumptionLimit === 0) { + if (!(userProfil !== null && userProfil !== void 0 && userProfil.sendConsumptionAlert) || userProfil.waterDailyConsumptionLimit === 0) { logStack('info', 'End of process - Alert report notification is disabled or lack informations from user profile to run'); return; } diff --git a/services/enedisHalfHourMonthlyAnalysis/ecolyo.js b/services/enedisHalfHourMonthlyAnalysis/ecolyo.js index 4d172538203ca4b4835efae6993444585eb574a1..646139ec46dfbeabab40f9b561bdd7dda0094fbc 100644 --- a/services/enedisHalfHourMonthlyAnalysis/ecolyo.js +++ b/services/enedisHalfHourMonthlyAnalysis/ecolyo.js @@ -94314,7 +94314,7 @@ class ConsumptionDataManager { const max = await this._queryRunnerService.fetchFluidMaxData(maxTimePeriod, timeStep, fluidTypes[0], withDate); return max; } - } // fetch last dataload available for a given fluid - return the daily data + } // fetch last dataload available for a given fluid - return the daily data async getLastDataload(fluidTypes) { diff --git a/services/fluidsPrices/ecolyo.js b/services/fluidsPrices/ecolyo.js index 2bdd25ca7ae88a4ef5368747b3780cc6eb4d8171..06f7cdb85f265f231cf658d533ad58fdbd121b0f 100644 --- a/services/fluidsPrices/ecolyo.js +++ b/services/fluidsPrices/ecolyo.js @@ -94314,7 +94314,7 @@ class ConsumptionDataManager { const max = await this._queryRunnerService.fetchFluidMaxData(maxTimePeriod, timeStep, fluidTypes[0], withDate); return max; } - } // fetch last dataload available for a given fluid - return the daily data + } // fetch last dataload available for a given fluid - return the daily data async getLastDataload(fluidTypes) { diff --git a/services/monthlyReportNotification/ecolyo.js b/services/monthlyReportNotification/ecolyo.js index 8e3de0ef95c013f185708f682393a3951e6ab43e..a96a3c8239e1c23929d4f85c29deea4a6d8f6f90 100644 --- a/services/monthlyReportNotification/ecolyo.js +++ b/services/monthlyReportNotification/ecolyo.js @@ -94314,7 +94314,7 @@ class ConsumptionDataManager { const max = await this._queryRunnerService.fetchFluidMaxData(maxTimePeriod, timeStep, fluidTypes[0], withDate); return max; } - } // fetch last dataload available for a given fluid - return the daily data + } // fetch last dataload available for a given fluid - return the daily data async getLastDataload(fluidTypes) { @@ -163736,13 +163736,13 @@ const getMonthlyReport = async (year, month, client) => { const monthlyReportNotification = async ({ client }) => { - var _userProfil; + var _userProfil, _userProfil2; logStack('info', 'Fetching user profile...'); const upm = new _profile.default(client); let userProfil = await upm.getProfile(); - if (!userProfil || !userProfil.sendAnalysisNotification) { + if (!((_userProfil = userProfil) !== null && _userProfil !== void 0 && _userProfil.sendAnalysisNotification)) { logStack('info', 'End of process - Report Notification disabled in user profile'); return; } // Init mail token for user in case he don't have one @@ -163797,7 +163797,7 @@ const monthlyReportNotification = async ({ userProfil = await upm.getProfile(); let token = undefined; - if ((_userProfil = userProfil) !== null && _userProfil !== void 0 && _userProfil.mailToken) { + if ((_userProfil2 = userProfil) !== null && _userProfil2 !== void 0 && _userProfil2.mailToken) { token = userProfil.mailToken; }