From a69aec203f0ce0b862ef5feeed327fdbe843f346 Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 30 Jun 2022 04:43:52 -0400 Subject: [PATCH] cap bio at 300 chars --- app/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.js b/app/models/user.js index 6e34e21..d0c0ff9 100644 --- a/app/models/user.js +++ b/app/models/user.js @@ -37,7 +37,7 @@ const UserSchema = new Schema({ passwordSalt: { type: String, required: true }, password: { type: String, required: true }, displayName: { type: String }, - bio: { type: String }, + bio: { type: String, maxlength: 300 }, picture: { large: { type: Schema.ObjectId, ref: 'Image' }, small: { type: Schema.ObjectId, ref: 'Image' },