Skip to content

Commit d99e3a4

Browse files
authored
fix: remove typo in schema defination
1 parent 2860498 commit d99e3a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/Bootcamp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bootcampSchema = new mongoose.Schema(
1212
require: [true, 'Please add a name'],
1313
unique: true,
1414
trim: true,
15-
maxLengt: [50, 'Name cannot be more than 50 characters'],
15+
maxlength: [50, 'Name cannot be more than 50 characters'],
1616
},
1717
slug: String,
1818
description: {

0 commit comments

Comments
 (0)