Skip to content

Commit 5713cd5

Browse files
committed
chore: fix logging when no projects are onboarded
1 parent eb6df94 commit 5713cd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/apps/script_executor_worker/src/bin/onboard-projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ async function main() {
444444
=== Summary ===
445445
${isDryRun ? '🧪 DRY RUN MODE: Only first project was processed for testing' : ''}
446446
Total processed: ${result.successCount + result.failureCount}
447-
Success rate: ${((result.successCount / (result.successCount + result.failureCount)) * 100).toFixed(1)}%
447+
Success rate: ${result.successCount + result.failureCount > 0 ? ((result.successCount / (result.successCount + result.failureCount)) * 100).toFixed(1) : '0'}%
448448
`)
449449

450450
process.exit(result.failureCount > 0 ? 1 : 0)

0 commit comments

Comments
 (0)