feat(search): search public news events users and open rooms
CI / check (push) Failing after 54s
CI / deploy (push) Skipped
CI / publish-container (push) Skipped

This commit is contained in:
Simo committed 2026-09-11 00:29:54 +02:00
1 parent 506e14783c
commit ba9c61d808
5 files changed
+424 -184

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import "server-only";
import { logger } from "@/lib/logger";
/** Keep failed public reads distinct from valid empty collections and zero counts. */
export function publicReadFailure(section: string) {
return (error: unknown): null => {
logger.error("Public section query failed", {
module: "public-data",
section,
error,
});
return null;
};
}