kuzzle-device-manager 2.0.0-rc26 → 2.0.0-rc27
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.
|
@@ -127,11 +127,14 @@ class AssetCategoryService {
|
|
|
127
127
|
else if (typeof value === "boolean") {
|
|
128
128
|
formattedValue.boolean = value;
|
|
129
129
|
}
|
|
130
|
-
else if (value.lat) {
|
|
131
|
-
formattedValue.geo_point = value;
|
|
132
|
-
}
|
|
133
130
|
else if (typeof value === "object") {
|
|
134
|
-
|
|
131
|
+
if (typeof value.lat !== "undefined" &&
|
|
132
|
+
typeof value.lon !== "undefined") {
|
|
133
|
+
formattedValue.geo_point = value;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
formattedValue.object = this.formatMetadataForES(value);
|
|
137
|
+
}
|
|
135
138
|
}
|
|
136
139
|
else {
|
|
137
140
|
formattedValue.keyword = value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle-device-manager",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc27",
|
|
4
4
|
"description": "Manage your IoT devices and assets. Choose a provisioning strategy, receive and decode payload, handle your IoT business logic.",
|
|
5
5
|
"author": "The Kuzzle Team (support@kuzzle.io)",
|
|
6
6
|
"repository": {
|