Use POST method for approval style preferences endpoint

This commit is contained in:
gitea committed 2026-09-11 11:48:28 +08:00
1 parent 883690e128
commit 112473a2b7
1 file changed
+2 -4
+2 -4
View File
@@ -274,10 +274,8 @@ export async function updateApprovalStylePreferences(
params: Record<string, unknown>,
endpoint = "api/v1/agent/ai-approval/config"
): Promise<ApprovalStylePreferences> {
return unwrap(
await client.patch(endpoint, { json: params }),
ApprovalStylePreferencesSchema
);
await client.post(endpoint, { json: params });
return getApprovalStylePreferences(client, endpoint);
}
export type WebhookMutationPreview = {