Spaces:
Running
Running
Hozifa Elgharbawy
commited on
Commit
·
a91980c
1
Parent(s):
0742351
refactor: Update ExercisePopulateSerialization import in user-registered-workoutPopulate.serialization.ts
Browse files
src/common/serializers/user-registered-workoutPopulate.serialization.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import { Expose, Transform } from "class-transformer";
|
2 |
import { serialize } from "@helpers/serialize";
|
3 |
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator";
|
4 |
-
import {
|
5 |
|
6 |
|
7 |
class MyWorkoutDaysPopulate {
|
@@ -18,7 +18,7 @@ class MyWorkoutDaysPopulate {
|
|
18 |
day_type: string;
|
19 |
|
20 |
@Expose({ name: "exercises" })
|
21 |
-
@SwaggerResponseProperty({ type: [
|
22 |
exercises: any;
|
23 |
|
24 |
@Expose()
|
|
|
1 |
import { Expose, Transform } from "class-transformer";
|
2 |
import { serialize } from "@helpers/serialize";
|
3 |
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator";
|
4 |
+
import { ExercisePopulateSerialization } from "./exercisePopulate.serialization";
|
5 |
|
6 |
|
7 |
class MyWorkoutDaysPopulate {
|
|
|
18 |
day_type: string;
|
19 |
|
20 |
@Expose({ name: "exercises" })
|
21 |
+
@SwaggerResponseProperty({ type: [ExercisePopulateSerialization] })
|
22 |
exercises: any;
|
23 |
|
24 |
@Expose()
|