Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

arghyaiitb
Copy link
Contributor

No description provided.

const logger = req.logger;
const clientId = req.query.client;
utils.setLogTokens(logger, 'videoAnalysis', 'getVideoAnalysisDetails', req.query.client, null);
let model = new VideoAnalysisModel(logger);

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');

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({

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;

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants