a tool for shared writing and social publishing

return if no handle in sync document metadata

+2
+2
app/api/inngest/functions/sync_document_metadata.ts
··· 21 21 const handle = doc?.alsoKnownAs 22 22 ?.find((a) => a.startsWith("at://")) 23 23 ?.replace("at://", ""); 24 + if (!doc) return null; 24 25 const isBridgy = !!doc?.service?.find( 25 26 (s) => s.serviceEndpoint === "https://atproto.brid.gy", 26 27 ); 27 28 return { handle: handle ?? null, isBridgy }; 28 29 }); 30 + if (!handleResult) return { error: "No Handle" }; 29 31 30 32 await step.run("set-indexed", async () => { 31 33 await supabaseServerClient