fix: validate request bodies and improve error handling in meshchat API endpoints

This commit is contained in:
Ivan committed 2026-04-09 04:49:52 -05:00
1 parent bb910f288b
commit 68c8e6e363
11 files changed
+120 -40

No files matched your search

+1 -1
View File
@@ -539,7 +539,7 @@ describe("NotificationBell clear all", () => {
await wrapper.vm.clearAllNotifications();
await new Promise((r) => setTimeout(r, 100));
const readCalls = global.api.get.mock.calls.filter((c) => c[0]?.includes("/mark-as-read"));
const readCalls = global.api.post.mock.calls.filter((c) => c[0]?.includes("/mark-as-read"));
expect(readCalls.length).toBe(1);
expect(readCalls[0][0]).toContain("conv1");