fix(handler): update sendFormattedResponse to include table name and model

This commit is contained in:
Hein
2026-06-22 16:38:21 +02:00
parent a2799fa224
commit 5a359a160b
3 changed files with 332 additions and 6 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func TestSendFormattedResponse_NoDataFoundHeader(t *testing.T) {
// Test with empty data
emptyData := []interface{}{}
handler.sendFormattedResponse(mockWriter, emptyData, metadata, options)
handler.sendFormattedResponse(mockWriter, emptyData, metadata, "", nil, options)
// Check if X-No-Data-Found header was set
if mockWriter.headers["X-No-Data-Found"] != "true" {