Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Nov 10, 2023
1 parent 5f5d92e commit 9ec10f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions XinjingdailyBot.Command/ReviewCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async Task<string> exec()
Name = reason,
FullText = reason,
};
await _postService.RejetPost(post, dbUser, rejectReason);
await _postService.RejectPost(post, dbUser, rejectReason);

return $"已拒绝该稿件, 理由: {reason}";
}
Expand Down Expand Up @@ -325,7 +325,7 @@ private async Task RejectPostHelper(NewPosts post, Users dbUser, CallbackQuery q
await _botClient.AutoReplyAsync($"找不到 {payload} 对应的拒绝理由", query, true);
return;
}
await _postService.RejetPost(post, dbUser, reason);
await _postService.RejectPost(post, dbUser, reason);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion XinjingdailyBot.Interface/Data/IPostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public interface IPostService : IBaseService<NewPosts>
/// <param name="dbUser"></param>
/// <param name="rejectReason"></param>
/// <returns></returns>
Task RejetPost(NewPosts post, Users dbUser, RejectReasons rejectReason);
Task RejectPost(NewPosts post, Users dbUser, RejectReasons rejectReason);
/// <summary>
/// 设置稿件Tag
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion XinjingdailyBot.Service/Data/PostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public async Task SetPostTag(NewPosts post, string payload, CallbackQuery callba
}
}

public async Task RejetPost(NewPosts post, Users dbUser, RejectReasons rejectReason)
public async Task RejectPost(NewPosts post, Users dbUser, RejectReasons rejectReason)
{
var poster = await _userService.Queryable().FirstAsync(x => x.UserID == post.PosterUID);

Expand Down

0 comments on commit 9ec10f9

Please sign in to comment.