-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/initial kraken setup #1
base: master
Are you sure you want to change the base?
Conversation
const logger = req.logger; | ||
const clientId = req.query.client; | ||
utils.setLogTokens(logger, 'videoAnalysis', 'getVideoAnalysisDetails', req.query.client, null); | ||
let model = new VideoAnalysisModel(logger); |
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.
create model object outside all functions and resuse it (change it to const instead of let)
@@ -0,0 +1,189 @@ | |||
const VideoAnalysisModel = require('../../../models/videoAnalysis'); |
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.
all the file names should be all small separated by - between words thats the convention we follow today. rename videoAnalysis to video-analysis.js
utils.setLogTokens(logger, 'videos', 'createVideoEntry', req.query.client, null); | ||
const clientId = req.query.client; | ||
let requestBody = req.body; | ||
const schema = Joi.object().keys({ |
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.
Pull all entity schemas into a separate directory and import them here
const MongoBase = require('../lib/MongoBase'); | ||
const MongoPaging = require('mongo-cursor-pagination'); | ||
const utils = require('../lib/utils'); | ||
var ObjectId = require('mongodb').ObjectId; |
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.
have you tried const/let instead of var?
No description provided.