fix(api): harden broadcast and assistant fallback errors

This commit is contained in:
2026-03-30 12:03:27 +02:00
parent 22cff9648e
commit 6a6e98b5f7
5 changed files with 305 additions and 57 deletions
@@ -306,13 +306,7 @@ describe("notification.createBroadcast", () => {
message: "No recipients matched the broadcast target.",
});
expect(create).toHaveBeenCalledWith(expect.objectContaining({
data: expect.objectContaining({
senderId: "user_mgr",
title: "Ops update",
targetType: "all",
}),
}));
expect(create).not.toHaveBeenCalled();
expect(update).not.toHaveBeenCalled();
expect(resolveRecipientsMock).toHaveBeenCalledWith(
"all",