diff --git a/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart b/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart index d067d325..93e0db41 100644 --- a/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart +++ b/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart @@ -170,6 +170,8 @@ class SupabaseMockServer { final asMap = Map.from(matchingRequest.value.data); if (asMap.containsKey('payload') && asMap['payload'] != null) { resp.write(jsonEncode([])); + } else { + resp.write(jsonEncode(matchingRequest.value.data)); } } return resp;