Skip to content

Feat/initial kraken setup#1

Open
arghyaiitb wants to merge 7 commits into
masterfrom
feat/initial-kraken-setup
Open

Feat/initial kraken setup#1
arghyaiitb wants to merge 7 commits into
masterfrom
feat/initial-kraken-setup

Conversation

@arghyaiitb
Copy link
Copy Markdown
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);
Copy link
Copy Markdown

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');
Copy link
Copy Markdown

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({
Copy link
Copy Markdown

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

Comment thread models/ratings.js
const MongoBase = require('../lib/MongoBase');
const MongoPaging = require('mongo-cursor-pagination');
const utils = require('../lib/utils');
var ObjectId = require('mongodb').ObjectId;
Copy link
Copy Markdown

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