fix: 修复周邀请次数统计时使用错误的用户ID字段

This commit is contained in:
ccnetcore
2025-11-02 01:21:28 +08:00
parent 927e9df7de
commit 36370c215d

View File

@@ -68,7 +68,7 @@ public class InviteCodeManager : DomainService
public async Task<int> GetWeeklyInvitationCountAsync(Guid userId, DateTime weekStart) public async Task<int> GetWeeklyInvitationCountAsync(Guid userId, DateTime weekStart)
{ {
return await _invitationRecordRepository._DbQueryable return await _invitationRecordRepository._DbQueryable
.Where(x => x.InviterId == userId) .Where(x => x.InvitedUserId == userId)
.Where(x => x.InvitationTime >= weekStart) .Where(x => x.InvitationTime >= weekStart)
.CountAsync(); .CountAsync();
} }