async deleteRows(source, orgId, additionalQuery) {
    let query = additionalQuery;
    if (query === undefined || query === null) {
      query = {};
    }

    if (source !== undefined && source !== null) {
      query.source = source;
    }

    if (orgId !== undefined && orgId !== null) {
      query.orgId = orgId;
    }

    this.dbManager.context.log.v('deleteRows, query: ' + util.inspect(query, { showHidden: true, depth: 3 }));
    await this.dbManager.dbo.collection(this.getTableName()).remove(query);
  }
/**
   * Deletes rows related to a given source and to a given organization, with applied filter query.
   * @param  {string}  source          the source of the data (like Discord etc.)
   * @param  {string}  orgId           id of the Discord server (organization)
   * @param  {Object}  additionalQuery the query filter object
   * @return {Promise}                 nothing
   */
Deletes rows related to a given source and to a given organization, with applied filter query.
@param  {string}  source          the source of the data (like Discord etc.)
@param  {string}  orgId           id of the Discord server (organization)
@param  {Object}  additionalQuery the query filter object
@return {Promise}                 nothing
Deletes rows related to a given source and to a given organization with applied filter query . @param { string } source the source of the data ( like Discord etc . ) @param { string } orgId id of the Discord server ( organization ) @param { Object } additionalQuery the query filter object @return { Promise } nothing
async deleteRows(source, orgId, additionalQuery) {
    let query = additionalQuery;
    if (query === undefined || query === null) {
      query = {};
    }
    if (source !== undefined && source !== null) {
      query.source = source;
    }
    if (orgId !== undefined && orgId !== null) {
      query.orgId = orgId;
    }
    this.dbManager.context.log.v('deleteRows, query: ' + util.inspect(query, { showHidden: true, depth: 3 }));
    await this.dbManager.dbo.collection(this.getTableName()).remove(query);
  }
async deleteRows ( source , orgId , additionalQuery ) { let query = additionalQuery ; if ( query === undefined || query === null ) { query = { } ; } if ( source !== undefined && source !== null ) { query . source = source ; } if ( orgId !== undefined && orgId !== null ) { query . orgId = orgId ; } this . dbManager . context . log . v ( 'deleteRows, query: ' + util . inspect ( query , { showHidden : true , depth : 3 } ) ) ; await this . dbManager . dbo . collection ( this . getTableName ( ) ) . remove ( query ) ; }
Deletes rows related to a given source and to a given organization, with applied filter query.
Deletes rows related to a given source and to a given organization with applied filter query .