Skip to content

Commit fa9b635

Browse files
Merge pull request #6126 from Countly/adding_types_3
Adding types 3
2 parents f219fcd + 17bb7d8 commit fa9b635

8 files changed

Lines changed: 812 additions & 556 deletions

File tree

api/parts/data/batcher.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class ReadBatcher {
422422
* @param {string} id - id of cache
423423
* @param {string} query - query for the document
424424
* @param {string} projection - which fields to return
425-
* @param {bool} multi - true if multiple documents
425+
* @param {boolean} multi - true if multiple documents
426426
* @returns {Promise} promise
427427
*/
428428
getData(collection, id, query, projection, multi) {
@@ -517,7 +517,7 @@ class ReadBatcher {
517517
* @param {string} collection - name of the collection where to update data
518518
* @param {object} query - query for the document
519519
* @param {object} projection - which fields to return
520-
* @param {bool} multi - true if multiple documents
520+
* @param {boolean} multi - true if multiple documents
521521
*/
522522
invalidate(collection, query, projection, multi) {
523523
if (!this.onMaster || cluster.isMaster) {
@@ -539,7 +539,7 @@ class ReadBatcher {
539539
* @param {string} collection - name of the collection where to update data
540540
* @param {object} query - query for the document
541541
* @param {object} projection - which fields to return
542-
* @param {bool} multi - true if multiple documents
542+
* @param {boolean} multi - true if multiple documents
543543
* @returns {Promise} promise
544544
*/
545545
get(collection, query, projection, multi) {
@@ -651,7 +651,7 @@ class ReadBatcher {
651651
* @param {string} query - query for the document
652652
* @param {string} projection - which fields to return
653653
* @param {object} data - data from database
654-
* @param {bool} multi - true if multiple documents
654+
* @param {boolean} multi - true if multiple documents
655655
*/
656656
cache(collection, id, query, projection, data, multi) {
657657
if (this.process) {

api/utils/authorizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const log = require('./log.js')('core:authorizer');
1515
* @param {object} options - options for the task
1616
* @param {object} options.db - database connection
1717
* @param {number} options.ttl - amount of seconds for token to work, 0 works indefinately
18-
* @param {bool} [options.multi=false] - if true, can be used many times until expired
18+
* @param {boolean} [options.multi=false] - if true, can be used many times until expired
1919
* @param {string} options.token - token to store, if not provided, will be generated
2020
* @param {string} options.owner - id of the user who created this token
2121
* @param {string} options.app - list of the apps for which token was created
2222
* @param {string} options.endpoint - regexp of endpoint(any string - is used as substring,to mach exact ^{yourpath}$)
2323
* @param {string} options.tryReuse - if true - tries to find not expired token with same parameters. If not founds cretes new token. If found - updates token expiration time to new one and returns token.
24-
* @param {bool} [options.temporary=false] - If logged in with temporary token. Doesn't kill other sessions on logout.
24+
* @param {boolean} [options.temporary=false] - If logged in with temporary token. Doesn't kill other sessions on logout.
2525
* @param {function} options.callback - function called when saving was completed or errored, providing error object as first param and token string as second
2626
*/
2727
authorizer.save = function(options) {

0 commit comments

Comments
 (0)