async onOrgDeleted(dbManager, org) {
    const deleteResults = [];
    for (const table of dbManager.tables) {
      if (Object.values(table.getRowClass().getColumns()).includes('orgId')) {
        deleteResults.push(table.deleteRows(org.source, org.id));
      }
    }
    dbManager.context.log.i(
      'onOrgDeleted: deleted data for org with id ' + org.id + ' name ' + org.name + ' from source ' + org.source
    );

    await Promise.all(deleteResults);
  }
/**
   * Handles events of deleting organizations.
   * @param  {DbManager}  dbManager the database manager instance
   * @param  {OrgRow}     org       the organization row instance
   * @return {Promise}              nothing
   */
Handles events of deleting organizations.
@param  {DbManager}  dbManager the database manager instance
@param  {OrgRow}     org       the organization row instance
@return {Promise}              nothing
Handles events of deleting organizations . @param { DbManager } dbManager the database manager instance @param { OrgRow } org the organization row instance @return { Promise } nothing
async onOrgDeleted(dbManager, org) {
    const deleteResults = [];
    for (const table of dbManager.tables) {
      if (Object.values(table.getRowClass().getColumns()).includes('orgId')) {
        deleteResults.push(table.deleteRows(org.source, org.id));
      }
    }
    dbManager.context.log.i(
      'onOrgDeleted: deleted data for org with id ' + org.id + ' name ' + org.name + ' from source ' + org.source
    );
    await Promise.all(deleteResults);
  }
async onOrgDeleted ( dbManager , org ) { const deleteResults = [ ] ; for ( const table of dbManager . tables ) { if ( Object . values ( table . getRowClass ( ) . getColumns ( ) ) . includes ( 'orgId' ) ) { deleteResults . push ( table . deleteRows ( org . source , org . id ) ) ; } } dbManager . context . log . i ( 'onOrgDeleted: deleted data for org with id ' + org . id + ' name ' + org . name + ' from source ' + org . source ) ; await Promise . all ( deleteResults ) ; }
Handles events of deleting organizations.
Handles events of deleting organizations .