Skip to content

Commit

Permalink
fix: build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Jan 27, 2024
1 parent 0785ae6 commit 5553b33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GrocyScanner.Core/Models/GrocyCreatedProductResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ namespace GrocyScanner.Core.Models;
public class GrocyCreatedProductResponse
{
[JsonPropertyName("created_object_id")]
public string ProductId { get; set; }
public required string ProductId { get; set; }
}
2 changes: 1 addition & 1 deletion GrocyScanner.Core/Models/GrocyProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace GrocyScanner.Core.Models;
public class GrocyProduct
{
[JsonPropertyName("name")]
public string Name { get; set; }
public required string Name { get; set; }

[JsonPropertyName("location_id")]
public string? LocationId { get; set; }
Expand Down
5 changes: 1 addition & 4 deletions GrocyScanner.Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@
app.UseStaticFiles();

app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<QrCodeScanHub>("/hubs/barcode");
});
app.MapHub<QrCodeScanHub>("/hubs/barcode");
app.MapControllers();

app.MapBlazorHub();
Expand Down

0 comments on commit 5553b33

Please sign in to comment.