From e55c9e6b9a8938a003922419611720dd83fc1db6 Mon Sep 17 00:00:00 2001 From: Albert Date: Sun, 9 Nov 2025 18:29:42 +0000 Subject: [PATCH] fix: Initialize atp_uri and atp_cid variables for TypeScript strict mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Initialize atp_uri and atp_cid with empty strings to satisfy TypeScript strict mode - Resolves "variable used before being assigned" compilation error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/api/nodes/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/nodes/route.ts b/app/api/nodes/route.ts index 4efeed2..7ba26ec 100644 --- a/app/api/nodes/route.ts +++ b/app/api/nodes/route.ts @@ -47,8 +47,8 @@ export async function POST(request: NextRequest) { const detailUrl = `${process.env.NEXT_PUBLIC_APP_URL || 'https://ponderants.app'}/galaxy/${encodeURIComponent(nodeId)}`; // --- Step 1: Write to Source of Truth (ATproto) --- - let atp_uri: string; - let atp_cid: string; + let atp_uri = ''; + let atp_cid = ''; try { // Get the OAuth client and restore the user's session