Skip to content

Commit e3139eb

Browse files
authored
Merge pull request #280 from chouzz/fix/daily-statistics-id-null-261
fix(stats): assign Id for DailyStatistics on creation to prevent PK null (#261)
2 parents 5fd24df + 62e435d commit e3139eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/KoalaWiki/Services/StatisticsService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@ public async Task<bool> GenerateDailyStatisticsAsync(DateTime? date = null)
11351135
// 创建新的统计数据
11361136
var dailyStats = new DailyStatistics
11371137
{
1138+
Id = Guid.NewGuid().ToString(),
11381139
Date = targetDate,
11391140
NewUsersCount = newUsersCount,
11401141
NewRepositoriesCount = newRepositoriesCount,

0 commit comments

Comments
 (0)