feat(search): search public news events users and open rooms
This commit is contained in:
1 parent
506e14783c
commit
ba9c61d808
5 files changed
+424
-184
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user