Merge pull request #477 from madawas/IOTS-296

Fixing generic policy payload
4.x.x
Madawa Soysa 8 years ago committed by GitHub
commit 938352266a

@ -44,5 +44,9 @@ var validatePolicyProfile = function () {
* @returns {Array} profile payloads * @returns {Array} profile payloads
*/ */
var generateGenericPayload = function () { var generateGenericPayload = function () {
return window.queryEditor.getValue(); return [{
"featureCode": "CONFIG",
"deviceTypeId": policy["platformId"],
"content": {"policyDefinition": window.queryEditor.getValue()}
}];
}; };

Loading…
Cancel
Save