This commit is contained in:
2025-05-13 11:17:58 +08:00
parent aa58767c66
commit 4d83091c5c
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
public async Task<GetPageQueryResponse> Handle(GetPageQuery request, CancellationToken cancellationToken)
{
var page = await _db.Articles.FindAsync(request.Id);
if (page == null)
if (page == null || page.Status == ArticleStatusEnum.Deleted)
{
throw new PageNotExistsException(request.Id);
}