powr-sdk-api 4.3.6 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/managers/tools.js +2 -2
- package/package.json +1 -1
package/dist/managers/tools.js
CHANGED
|
@@ -398,8 +398,8 @@ class ToolsManager {
|
|
|
398
398
|
|
|
399
399
|
// Check if condition matches
|
|
400
400
|
const currentWeather = weatherData.weather[0].main.toLowerCase();
|
|
401
|
-
const targetCondition = params.condition.toLowerCase();
|
|
402
|
-
const operator = params.operator || 'is';
|
|
401
|
+
const targetCondition = ((params === null || params === void 0 ? void 0 : params.condition) || 'rain').toLowerCase();
|
|
402
|
+
const operator = (params === null || params === void 0 ? void 0 : params.operator) || 'is';
|
|
403
403
|
let conditionMet = false;
|
|
404
404
|
switch (operator) {
|
|
405
405
|
case 'is':
|