This commit is contained in:
2025-05-13 11:27:58 +08:00
parent 4d83091c5c
commit c81f267ecc
8 changed files with 9 additions and 9 deletions

View File

@@ -30,7 +30,7 @@
var categoryObject = ValueObject<CategoryEntity>.Create(request.CategoryId, category);
var article = await _db.Articles.FindAsync(request.Id);
if (article == null)
if (article == null || article.Status == ArticleStatusEnum.Deleted)
{
throw new ArticleNotExistsException(request.Id);
}