-
Notifications
You must be signed in to change notification settings - Fork 978
Initial Commit #1585
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
Initial Commit #1585
Conversation
|
Issues
======
- Added 4
Complexity increasing per file
==============================
- plugins/myMetric/api/api.js 4
- plugins/myMetric/frontend/app.js 1
See the complete overview on Codacy |
| try { | ||
| params.qstring.args = JSON.parse(params.qstring.args); | ||
| } catch (SyntaxError) { | ||
| console.log('Parse ' + paramsInstance.qstring.args + ' JSON failed'); |
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.
Codacy found an issue: 'paramsInstance' is not defined.
| } | ||
| }); | ||
|
|
||
| let array = common.db.collection('my_metric').aggregate([ |
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.
Codacy found an issue: 'common' is not defined.
| console.log('Parse ' + paramsInstance.qstring.args + ' JSON failed'); | ||
| } | ||
| } | ||
| common.db.collection('my_metric').insert(paramsInstance, function () { |
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.
Codacy found an issue: 'common' is not defined.
| } | ||
| let result = {}; | ||
| validate(params, async function () { | ||
| common.db.collection("my_metric").find().sort({my_metric: -1}).limit(3).toArray(function (err, res) { |
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.
Codacy found an issue: 'common' is not defined.
|
Hello |
No description provided.