Update StoreOperations.cs

This commit is contained in:
2022-01-26 16:43:24 +01:00
parent 27b07633be
commit efe422f312
+1 -1
View File
@@ -65,7 +65,7 @@ public partial class StoreOperations :
if (model is ZeroEntity zeroModel)
{
// get current user
string userId = Context.BackofficeUser.FindFirstValue(Constants.Auth.Claims.UserId);
string userId = Context.BackofficeUser.FindFirstValue(Constants.Auth.Claims.UserId).Or(Constants.Auth.SystemUser);
// set default properties
if (zeroModel.CreatedDate == default)