From 76deaf8d6fe108cdd8e1e4c32997b084b319d3b7 Mon Sep 17 00:00:00 2001 From: nongzhsh Date: Fri, 15 Mar 2019 03:37:38 +0800 Subject: [PATCH] Fixed the bug that add new tag was not valid for the first time --- .../Volo/Blogging/Posts/PostAppService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs index 34488f77a1..916455bc47 100644 --- a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs +++ b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs @@ -228,8 +228,9 @@ namespace Volo.Blogging.Posts { tag.IncreaseUsageCount(); tag = await _tagRepository.UpdateAsync(tag); - post.AddTag(tag.Id); } + + post.AddTag(tag.Id); } }