🐛 Fix birthday check in result didn't show up

This commit is contained in:
2025-11-27 21:41:30 +08:00
parent a92dc7e140
commit f51c3c1724

View File

@@ -357,7 +357,8 @@ public class AccountEventService(
.FirstOrDefaultAsync(); .FirstOrDefaultAsync();
var now = SystemClock.Instance.GetCurrentInstant().InUtc().Date; var now = SystemClock.Instance.GetCurrentInstant().InUtc().Date;
if (accountBirthday.HasValue && accountBirthday.Value.InUtc().Date == now) var birthdayDate = accountBirthday?.InUtc().Date;
if (birthdayDate.HasValue && birthdayDate.Value.Month == now.Month && birthdayDate.Value.Day == now.Day)
checkInLevel = CheckInResultLevel.Special; checkInLevel = CheckInResultLevel.Special;
var result = new SnCheckInResult var result = new SnCheckInResult