修正評分計算彙總 bug

This commit is contained in:
2025-09-26 23:04:08 +08:00
parent 0675fe63b0
commit 1aa8a06da1
2 changed files with 41 additions and 59 deletions

View File

@@ -3895,6 +3895,7 @@ export class ScoringService extends DatabaseServiceBase {
completed: number;
total: number;
percentage: number;
appCount: number;
}> {
try {
console.log('🔍 獲取競賽評分進度competitionId:', competitionId);
@@ -3948,11 +3949,12 @@ export class ScoringService extends DatabaseServiceBase {
return {
completed,
total,
percentage
percentage,
appCount
};
} catch (error) {
console.error('獲取評分進度失敗:', error);
return { completed: 0, total: 0, percentage: 0 };
return { completed: 0, total: 0, percentage: 0, appCount: 0 };
}
}