Fix: SpacetimeDB HTTP API bruker snake_case, ikke camelCase

edit_message reducer forventer workspace_id og new_body,
ikke workspaceId og newBody. TypeScript SDK bruker camelCase,
men HTTP API-et bruker snake_case.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
vegard 2026-03-16 03:51:13 +01:00
parent 52b71e6440
commit 80b7103cba

View file

@ -239,8 +239,8 @@ impl AiTextProcessHandler {
let payload = json!({ let payload = json!({
"id": message_id.to_string(), "id": message_id.to_string(),
"workspaceId": workspace_id.to_string(), "workspace_id": workspace_id.to_string(),
"newBody": new_body "new_body": new_body
}); });
let resp = self let resp = self