Compare commits

...

2 Commits

Author SHA1 Message Date
7b8dd3ff40 * Error fix 2026-06-24 22:31:18 +02:00
83fd5c076e * Switch to .net 10 2026-06-24 22:02:52 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# ---------- Build stage ----------
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
# Restore first to leverage Docker layer caching.
@@ -10,7 +10,7 @@ COPY . .
RUN dotnet publish "MealPlan.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false
# ---------- Runtime stage ----------
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
# Run as the non-root user shipped in the aspnet image.

View File

@@ -23,8 +23,8 @@ function toRecipeDetail(meal: DietGeneratorDraftMeal): RecipeDetailModel {
ingredients: (meal.ingredients ?? []).map((ingredient) => ({
id: ingredient.id,
name: ingredient.name,
amountGrams: ingredient.amountGrams,
unit: ingredient.unit,
amountGrams: ingredient.amountGrams ?? null,
unit: ingredient.unit ?? null,
sortOrder: ingredient.sortOrder,
catalogItemId: null,
})),