Merge pull request #477 from madawas/IOTS-296

Fixing generic policy payload
revert-70aa11f8
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