fix(blog posts, diets, plans, recipies): changed name of json field for descriptions of models

This commit is contained in:
Username1548
2025-03-28 20:36:09 +07:00
parent 7008276735
commit f9741adf1e
24 changed files with 134 additions and 208 deletions

View File

@@ -36,7 +36,7 @@ class CreateDietRepository {
dietMap.addAll({
'name': name,
'details': details,
'description_md': details,
'duration': duration,
'type[meat]': meatType,
'type[carb]': carbType,
@@ -115,7 +115,7 @@ class CreateDietRepository {
dietMap.addAll({'name': name});
}
if (details != null) {
dietMap.addAll({'details': details});
dietMap.addAll({'description_md': details});
}
if (duration != null) {
dietMap.addAll({'duration': duration});