Merge pull request #477 from madawas/IOTS-296

Fixing generic policy payload
This commit is contained in:
Madawa Soysa 2016-12-08 17:32:53 +05:30 committed by GitHub
commit 938352266a

View File

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