classes/table.js
/**
     * Make persistent updates possible again
     * @param callback
     * @param preventUpdating
     */
Make persistent updates possible again
@param callback
@param preventUpdating
Make persistent updates possible again @param callback @param preventUpdating
resumePersistentUpdates(callback, preventUpdating) {
        let self = this;
        self.persistentUpdatesSuspended = Math.max(self.persistentUpdatesSuspended - 1, 0);
        console.log("Persistent lock for table '" + self.name + "' is set to " + self.persistentUpdatesSuspended);
        if (self.persistentUpdatesSuspended === 0 && !preventUpdating) {
            self.updatePersistent(function(err) {
                if (err) {
                    console.log('ERROR UPDATING PERSISTENT ' + self.name, err);
                }
                callback(err);
            });
        } else {
            if (_.isFunction(callback)) {
                callback();
            }
        }
    }
resumePersistentUpdates ( callback , preventUpdating ) { let self = this ; self . persistentUpdatesSuspended = Math . max ( self . persistentUpdatesSuspended - 1 , 0 ) ; console . log ( "Persistent lock for table '" + self . name + "' is set to " + self . persistentUpdatesSuspended ) ; if ( self . persistentUpdatesSuspended === 0 && ! preventUpdating ) { self . updatePersistent ( function ( err ) { if ( err ) { console . log ( 'ERROR UPDATING PERSISTENT ' + self . name , err ) ; } callback ( err ) ; } ) ; } else { if ( _ . isFunction ( callback ) ) { callback ( ) ; } } }
Make persistent updates possible again
 @param callback
 @param preventUpdating
Make persistent updates possible again @param callback @param preventUpdating