Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cookiezaurs committed May 7, 2024
1 parent ea6cde7 commit 0ca98f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/utils/rights.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ var common = require("./common.js"),

var authorize = require('./authorizer.js'); //for token validations

var collectionMap = {};//map to know when data about som collections/events was refreshed
var cachedSchema = {};

//check token and return owner id if token valid
//owner d used later to set all member variables.
/**Validate if token exists and is not expired(uzing authorize.js)
/**Validate if token exists and is not expired(uzing authorize.js)
* @param {object} params params
* @param {string} params.qstring.auth_token authentication token
* @param {string}params.req.headers.countly-token {string} authentication token
Expand Down Expand Up @@ -548,7 +551,6 @@ function loadAndCacheEventsData(apps, callback) {
* @param {function} cb - callback method
**/
function getViews(appColl, cb) {
var result = {};
common.db.collection('views').find({'_id': { $in: appColl.appIds }}).toArray(function(err, viewDocs) {
if (!err && viewDocs) {
for (let idx = 0; idx < viewDocs.length; idx++) {
Expand Down

0 comments on commit 0ca98f3

Please sign in to comment.