server/services/databaseService.js
// Clears all contents of the database
Clears all contents of the database
Clears all contents of the database
static clear() {
    if (process.env.NODE_ENV !== 'production') {
      return User.remove().exec()
        .then(() => UserStatistics.remove().exec())
        .then(() => AppInfo.remove().exec());
    }
    return Promise.resolve();
  }
static clear ( ) { if ( process . env . NODE_ENV !== 'production' ) { return User . remove ( ) . exec ( ) . then ( ( ) => UserStatistics . remove ( ) . exec ( ) ) . then ( ( ) => AppInfo . remove ( ) . exec ( ) ) ; } return Promise . resolve ( ) ; }
Clears all contents of the database
Clears all contents of the database