-
Notifications
You must be signed in to change notification settings - Fork 15
lab 18 Jeremiah #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
lab 18 Jeremiah #34
Conversation
userID: { type: Schema.Types.ObjectId, required: true },//make sure its part of the correct gallery | ||
galleryID: { type: Schema.Types.ObjectId, required: true }, | ||
imageURI: { type: String, required: true, unique: true },//what comes back from s3 | ||
objectKey: { type: String, required: true, unique: true },//also comes back from s3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you are taking notes to remind yourself what things are. I take notes in my code as well. Sometimes if I have questions I will note them in there as well and just remove them before pushing.
debug('POST: /api/gallery'); | ||
|
||
if(!req.body.name) return next(createError(400, 'no name')); | ||
if(!req.body.desc) return next(createError(400, 'no description')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job adding extra error checking in here.
No description provided.