Spaces:
Sleeping
Sleeping
Commit
·
889c2f1
1
Parent(s):
411c3a4
update: default duration 0
Browse files
src/common/models/exercise.model.ts
CHANGED
@@ -30,7 +30,7 @@ export interface IExercise {
|
|
30 |
const exerciseSchema = new Schema<IExercise>({
|
31 |
name: { type: String, required: true, unique: true, dropDups: true },
|
32 |
category: { type: String, required: true },
|
33 |
-
duration: { type: Number, required: false },
|
34 |
exerciseType: {
|
35 |
type: String,
|
36 |
required: false,
|
|
|
30 |
const exerciseSchema = new Schema<IExercise>({
|
31 |
name: { type: String, required: true, unique: true, dropDups: true },
|
32 |
category: { type: String, required: true },
|
33 |
+
duration: { type: Number, required: false, default: 0 },
|
34 |
exerciseType: {
|
35 |
type: String,
|
36 |
required: false,
|
src/seeder/seeders/5-exercises.seeder.ts
CHANGED
@@ -18,6 +18,7 @@ export default seederWrapper(Exercise, async () => {
|
|
18 |
{
|
19 |
reps: Math.floor(Math.random() * 10),
|
20 |
sets: e.sets,
|
|
|
21 |
}
|
22 |
||
|
23 |
{
|
|
|
18 |
{
|
19 |
reps: Math.floor(Math.random() * 10),
|
20 |
sets: e.sets,
|
21 |
+
duration: 0,
|
22 |
}
|
23 |
||
|
24 |
{
|