fix: 修复周邀请次数统计时使用错误的用户ID字段
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user