database.js
/**
         * Shuts down the database connection and removes all intervals that are running.
         */
Shuts down the database connection and removes all intervals that are running.
Shuts down the database connection and removes all intervals that are running .
dispose() {
            if (this.heartbeatInterval) {
                clearInterval(this.heartbeatInterval);
            }
            this.connection.end();
        }
dispose ( ) { if ( this . heartbeatInterval ) { clearInterval ( this . heartbeatInterval ) ; } this . connection . end ( ) ; }
Shuts down the database connection and removes all intervals that are running.
Shuts down the database connection and removes all intervals that are running .