Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep isNotFoundError module-private (#12427)

[._.]/ Adam Eivyc436d632c8b0
diff --git a/server/services/sharing/peerSyncShared.js b/server/services/sharing/peerSyncShared.js
index 846e01d652..bed4106c10 100644
--- a/server/services/sharing/peerSyncShared.js
+++ b/server/services/sharing/peerSyncShared.js
@@ -236,7 +236,7 @@ export async function findPeerById(peerId) {
// maps to null. Anything else (DB down, a sanitizer throwing) rethrows so the
// push rejects before any network call or lastPushedHash write, and the caller
// logs it (#11455).
-export function isNotFoundError(err) {
+function isNotFoundError(err) {
const code = err?.code;
return err?.status === 404 || (typeof code === 'string' && (code === 'NOT_FOUND' || code.endsWith('_NOT_FOUND')));
}