imports/vx/server/daemon/recordimporter.js
/**
     * Locate and reset any import requests of the specified type in progress.
     */
Locate and reset any import requests of the specified type in progress.
Locate and reset any import requests of the specified type in progress .
resetPendingImportRequests() {
        const selector = {}
        selector.status = {}
        selector.$in = ["ACTIVE", "TRANSMITTING", "WAITING", "INSERTING"]
        UploadStats.find(selector).forEach(uploadStats => {
            OLog.debug(`recordimporter.js resetPendingImportRequests *found* domainId=${uploadStats.domain} ` +
                `uploadType=${uploadStats.uploadType} requestor=${Util.getUserEmail(uploadStats.userId)}`)
            VXApp.setUploadStatus(uploadStats.uploadType, "CLEARED", uploadStats.domain)
            RecordImporter.createImportEvent("LIST_IMPORT_RESET", uploadStats.uploadType, uploadStats.domain)
        })
    }
resetPendingImportRequests ( ) { const selector = { } selector . status = { } selector . $in = [ "ACTIVE" , "TRANSMITTING" , "WAITING" , "INSERTING" ] UploadStats . find ( selector ) . forEach ( uploadStats => { OLog . debug ( ` ${ uploadStats . domain } ` + ` ${ uploadStats . uploadType } ${ Util . getUserEmail ( uploadStats . userId ) } ` ) VXApp . setUploadStatus ( uploadStats . uploadType , "CLEARED" , uploadStats . domain ) RecordImporter . createImportEvent ( "LIST_IMPORT_RESET" , uploadStats . uploadType , uploadStats . domain ) } ) }
Locate and reset any import requests of the specified type in progress.
Locate and reset any import requests of the specified type in progress .