Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Sep 8, 2023
1 parent db9a82c commit ce18f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.2.1.1</Version>
<Version>2.2.1.2</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion XinjingdailyBot.Command/AdminCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async Task<string> exec()
//获取最近一条解封记录
var lastUnbaned = await _banRecordService.Queryable()
.Where(x => x.UserID == targetUser.UserID && (x.Type == EBanType.UnBan || x.Type == EBanType.Ban))
.OrderByDescending(static x => x.BanTime.GetTimestamp()).FirstAsync();
.OrderByDescending(static x => x.Id).FirstAsync();

var expireTime = DateTime.Now.AddDays(-WarnDuration);
int warnCount = await _banRecordService.Queryable()
Expand Down

0 comments on commit ce18f46

Please sign in to comment.