Skip to content

Commit

Permalink
Removed commented codes
Browse files Browse the repository at this point in the history
  • Loading branch information
foyzulkarim committed Aug 25, 2023
1 parent 4910f10 commit 2cc513b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions server/src/modules/models/video/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const schema = Joi.object().keys({
visibility: Joi.string().min(3).max(30).required(),
category: Joi.string().min(3).max(30).required(),
recordingDate: Joi.date().required(),
// language: Joi.string().min(3).max(30).required(),
// originalName: Joi.string().min(3).max(30).required(),
// fileName: Joi.string().min(3).max(30).required(),
// videoLink: Joi.string().min(3).max(30).required(),
});

const validate = (data) => {
Expand Down
4 changes: 1 addition & 3 deletions server/src/modules/models/video/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ const { ObjectId } = require('mongodb');
const { Video } = require('../../db/collections');
const { VIDEO_STATUS } = require('../../db/constant');

// TODO: add logging

const insert = async (document) => {
try {
return await Video.insert({ status: VIDEO_STATUS.PENDING, ...document }); // assigning default satus for all new videos
return await Video.insert({ status: VIDEO_STATUS.PENDING, ...document });
} catch (error) {
return error;
}
Expand Down

0 comments on commit 2cc513b

Please sign in to comment.