Hozifa Elgharbawy commited on
Commit
b06655a
·
1 Parent(s): cd5d21c

refactor: Update property names in meal plan serializers

Browse files
src/common/serializers/meal-plan.serialization.ts CHANGED
@@ -38,22 +38,22 @@ export class MealPlanSerialization {
38
 
39
  @Expose()
40
  @SwaggerResponseProperty({ type: "string" })
41
- Duration: string;
42
 
43
  @Expose()
44
  @SwaggerResponseProperty({ type: "string" })
45
- Level: string;
46
 
47
  @Expose()
48
  @SwaggerResponseProperty({ type: "string" })
49
- your_Journey: string;
50
 
51
- @Expose({ name: "key_Features" })
52
  @SwaggerResponseProperty({ type: [MealPlanKeyFeatures] })
53
  @Transform(
54
  ({ value }) => serialize(value, MealPlanKeyFeatures)
55
  )
56
- key_Features: any;
57
 
58
  @Expose({ name: "days" })
59
  @SwaggerResponseProperty({ type: [MealPlanDays] })
 
38
 
39
  @Expose()
40
  @SwaggerResponseProperty({ type: "string" })
41
+ duration: string;
42
 
43
  @Expose()
44
  @SwaggerResponseProperty({ type: "string" })
45
+ level: string;
46
 
47
  @Expose()
48
  @SwaggerResponseProperty({ type: "string" })
49
+ your_journey: string;
50
 
51
+ @Expose({ name: "key_features" })
52
  @SwaggerResponseProperty({ type: [MealPlanKeyFeatures] })
53
  @Transform(
54
  ({ value }) => serialize(value, MealPlanKeyFeatures)
55
  )
56
+ key_features: any;
57
 
58
  @Expose({ name: "days" })
59
  @SwaggerResponseProperty({ type: [MealPlanDays] })
src/common/serializers/meal-planPopulate.serialization.ts CHANGED
@@ -39,22 +39,22 @@ export class MealPlanPopulateSerialization {
39
 
40
  @Expose()
41
  @SwaggerResponseProperty({ type: "string" })
42
- Duration: string;
43
 
44
  @Expose()
45
  @SwaggerResponseProperty({ type: "string" })
46
- Level: string;
47
 
48
  @Expose()
49
  @SwaggerResponseProperty({ type: "string" })
50
- your_Journey: string;
51
 
52
- @Expose({ name: "key_Features" })
53
  @SwaggerResponseProperty({ type: [MealPlanKeyFeaturesPopulate] })
54
  @Transform(
55
  ({ value }) => serialize(value, MealPlanKeyFeaturesPopulate)
56
  )
57
- key_Features: any;
58
 
59
  @Expose({ name: "days" })
60
  @SwaggerResponseProperty({ type: [MealPlanDaysPopulate] })
 
39
 
40
  @Expose()
41
  @SwaggerResponseProperty({ type: "string" })
42
+ duration: string;
43
 
44
  @Expose()
45
  @SwaggerResponseProperty({ type: "string" })
46
+ level: string;
47
 
48
  @Expose()
49
  @SwaggerResponseProperty({ type: "string" })
50
+ your_journey: string;
51
 
52
+ @Expose({ name: "key_features" })
53
  @SwaggerResponseProperty({ type: [MealPlanKeyFeaturesPopulate] })
54
  @Transform(
55
  ({ value }) => serialize(value, MealPlanKeyFeaturesPopulate)
56
  )
57
+ key_features: any;
58
 
59
  @Expose({ name: "days" })
60
  @SwaggerResponseProperty({ type: [MealPlanDaysPopulate] })