api client update

This commit is contained in:
vabene1111
2024-05-01 13:47:25 +02:00
parent 17693b90b5
commit f961413e94
5 changed files with 533 additions and 517 deletions

View File

@@ -169,8 +169,8 @@ export function PatchedMealPlanToJSON(value?: PatchedMealPlan | null): any {
'recipe': RecipeOverviewToJSON(value['recipe']),
'servings': value['servings'],
'note': value['note'],
'from_date': value['fromDate'] == null ? undefined : ((value['fromDate']).toISOString().substring(0,10)),
'to_date': value['toDate'] == null ? undefined : ((value['toDate']).toISOString().substring(0,10)),
'from_date': value['fromDate'] == null ? undefined : ((value['fromDate']).toISOString()),
'to_date': value['toDate'] == null ? undefined : ((value['toDate']).toISOString()),
'meal_type': MealTypeToJSON(value['mealType']),
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserToJSON)),
};