Fixing generic policy payload

This commit is contained in:
Madawa Soysa 2016-12-08 17:31:50 +05:30
parent 0b3183e3be
commit ea1371a008

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()}
}];
};