Skip to content

Commit

Permalink
additional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xF6 committed Aug 3, 2024
1 parent a450ddf commit 02aefe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/entities/ApiKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}

Expand Down
1 change: 1 addition & 0 deletions src/logic/services/firebase/FirebaseUserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public async Task<bool> UserAllowedPublishWorkloads()
var userData = user.ConvertTo<UserDetails>();

logger.LogInformation($"[UserAllowedPublishWorkloads] userData: {JsonConvert.SerializeObject(userData)}");
logger.LogInformation($"[UserAllowedPublishWorkloads] userFields: {JsonConvert.SerializeObject(user.ToDictionary())}");

return userData.IsAllowedPublishWorkloads;
}
Expand Down

0 comments on commit 02aefe1

Please sign in to comment.