fix: integration toggle sends 'enabled' not 'enable' in JSON body

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 4.6 committed 2026-02-25 20:16:40 +01:00
1 parent 0a5840a255
commit e21ae0f409
1 file changed
+1 -1
@@ -220,7 +220,7 @@ async function toggleIntegration(provider, target, enable, checkbox) {
var resp = await fetch('/api/integrations/' + provider + '/' + target, {
method: 'POST',
headers: Object.assign({'Content-Type': 'application/json'}, csrfHeaders()),
body: JSON.stringify({enable: enable})
body: JSON.stringify({enabled: enable})
});
var data = await resp.json();
if (!data.ok) {