packages/strapi/lib/utils/index.js
/*
   * Return false where there is no administrator, otherwise return true.
   */
Return false where there is no administrator, otherwise return true.
Return false where there is no administrator otherwise return true .
async isInitialised(strapi) {
    try {
      if (isEmpty(strapi.admin)) {
        return true;
      }
      const numberOfAdministrators = await strapi
        .query('administrator', 'admin')
        .find({ _limit: 1 });
      return numberOfAdministrators.length > 0;
    } catch (err) {
      strapi.stopWithError(err);
    }
  }
async isInitialised ( strapi ) { try { if ( isEmpty ( strapi . admin ) ) { return true ; } const numberOfAdministrators = await strapi . query ( 'administrator' , 'admin' ) . find ( { _limit : 1 } ) ; return numberOfAdministrators . length > 0 ; } catch ( err ) { strapi . stopWithError ( err ) ; } }
Return false where there is no administrator, otherwise return true.
Return false where there is no administrator otherwise return true .