diff --git a/src/logic/entities/ApiKey.cs b/src/logic/entities/ApiKey.cs index 6762cac..66fbb09 100644 --- a/src/logic/entities/ApiKey.cs +++ b/src/logic/entities/ApiKey.cs @@ -39,10 +39,10 @@ public class UserDetails [FirestoreDocumentCreateTimestamp, JsonProperty("creationDate")] public DateTimeOffset CreationDate { get; set; } - [FirestoreProperty, JsonProperty("isAllowedPublishWorkloads")] + [FirestoreProperty("isAllowedPublishWorkloads"), JsonProperty("isAllowedPublishWorkloads")] public bool IsAllowedPublishWorkloads { get; set; } - [FirestoreProperty, JsonProperty("isAllowedPublishServicePackage")] + [FirestoreProperty("isAllowedPublishServicePackage"), JsonProperty("isAllowedPublishServicePackage")] public bool IsAllowedPublishServicePackage { get; set; } } diff --git a/src/logic/services/firebase/FirebaseUserService.cs b/src/logic/services/firebase/FirebaseUserService.cs index 44de853..6ed196e 100644 --- a/src/logic/services/firebase/FirebaseUserService.cs +++ b/src/logic/services/firebase/FirebaseUserService.cs @@ -69,6 +69,7 @@ public async Task UserAllowedPublishWorkloads() var userData = user.ConvertTo(); logger.LogInformation($"[UserAllowedPublishWorkloads] userData: {JsonConvert.SerializeObject(userData)}"); + logger.LogInformation($"[UserAllowedPublishWorkloads] userFields: {JsonConvert.SerializeObject(user.ToDictionary())}"); return userData.IsAllowedPublishWorkloads; }