mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix policy autofill using incorrect media-type for query (#30112)
#30066
This commit is contained in:
parent
44a9d2d69e
commit
78ba04ff10
2 changed files with 2 additions and 4 deletions
1
changes/30066-policy-autofill-media-type
Normal file
1
changes/30066-policy-autofill-media-type
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fixed policy autofill using incorrect media-type for query
|
||||
|
|
@ -10,9 +10,6 @@ export default {
|
|||
getPolicyInterpretationFromSQL: (sql: string): Promise<IAutofillPolicy> => {
|
||||
const { AUTOFILL_POLICY } = endpoints;
|
||||
|
||||
// API expects JSON object with key "sql"
|
||||
const data = JSON.stringify({ sql });
|
||||
|
||||
return sendRequest("POST", AUTOFILL_POLICY, data);
|
||||
return sendRequest("POST", AUTOFILL_POLICY, { sql });
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue