mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 06:32:11 +00:00
fixed validation for exercise creation (inlcuding unique exercise name), also added ability to edit exercises
This commit is contained in:
@@ -7,7 +7,7 @@ var Datafield = new Schema({
|
||||
|
||||
|
||||
var exerciseSchema = new Schema({
|
||||
name: String,
|
||||
name: {type: String, unique: true, required: true},
|
||||
type: String,
|
||||
description: String,
|
||||
difficulty: Number,
|
||||
|
||||
Reference in New Issue
Block a user