Bug: Stale cache when adding user flag in expression

This commit is contained in:
Gary Sharp
2018-04-19 17:08:43 +10:00
parent df721d7d6e
commit 9f62da9ccd
2 changed files with 2 additions and 1 deletions
@@ -206,7 +206,7 @@ namespace Disco.Services.Documents.AttachmentImport
comments = string.Format("Generated: {0:s}", Identifier.TimeStamp);
}
User creatorUser = UserService.GetUser(Identifier.CreatorId, Database);
User creatorUser = UserService.GetUser(Identifier.CreatorId, Database, true);
if (creatorUser == null)
{
// No Creator User (or Username invalid)
@@ -101,6 +101,7 @@ namespace Disco.Services
User = u,
AddedDate = DateTime.Now,
AddedUser = AddingUser,
AddedUserId = AddingUser.UserId,
Comments = string.IsNullOrWhiteSpace(Comments) ? null : Comments.Trim()
};