Fixed the bug that add new tag was not valid for the first time

pull/877/head
nongzhsh 6 years ago
parent 642c2c4a33
commit 76deaf8d6f

@ -228,8 +228,9 @@ namespace Volo.Blogging.Posts
{
tag.IncreaseUsageCount();
tag = await _tagRepository.UpdateAsync(tag);
post.AddTag(tag.Id);
}
post.AddTag(tag.Id);
}
}

Loading…
Cancel
Save