Skip to content

Commit 09d8dd3

Browse files
shanerbaner82claude
andcommitted
Add temporary test-sync route for debugging
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 237335d commit 09d8dd3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

routes/web.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,19 @@
329329
Route::get('dashboard', [DeveloperOnboardingController::class, 'dashboard'])->name('dashboard');
330330
});
331331

332-
Route::get('test', function () {
333-
logger('TEST');
332+
Route::get('test-sync/{id}', function (int $id) {
333+
$plugin = \App\Models\Plugin::findOrFail($id);
334+
logger('[TestSync] Starting', ['plugin_id' => $plugin->id, 'name' => $plugin->name]);
335+
336+
$syncService = new \App\Services\PluginSyncService;
337+
$result = $syncService->sync($plugin);
338+
339+
logger('[TestSync] Done', ['result' => $result]);
340+
341+
return response()->json([
342+
'result' => $result,
343+
'last_synced_at' => $plugin->fresh()->last_synced_at,
344+
'has_readme' => $plugin->fresh()->readme_html !== null,
345+
'readme_length' => strlen($plugin->fresh()->readme_html ?? ''),
346+
]);
334347
});

0 commit comments

Comments
 (0)