diff --git a/controllers/albumsController.js b/controllers/albumsController.js index 7fa54d4..c55d4f1 100644 --- a/controllers/albumsController.js +++ b/controllers/albumsController.js @@ -73,9 +73,11 @@ self.getUniqueAlbumIdentifier = async res => { continue } + /* if (utils.devmode) { logger.debug(`albums.onHold: ${utils.inspect(self.onHold)}`) } + */ // Unhold identifier once the Response has been sent if (res) { @@ -100,9 +102,11 @@ self.unholdAlbumIdentifiers = res => { for (const identifier of res.locals.identifiers) { self.onHold.delete(identifier) + /* if (utils.devmode) { logger.debug(`albums.onHold: ${utils.inspect(self.onHold)} -> ${utils.inspect(identifier)}`) } + */ } delete res.locals.identifiers diff --git a/controllers/uploadController.js b/controllers/uploadController.js index d28f9b8..af0efc4 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -188,9 +188,11 @@ self.getUniqueUploadIdentifier = async (length, extension = '', res) => { continue } + /* if (utils.devmode) { logger.debug(`upload.onHold: ${utils.inspect(self.onHold)}`) } + */ // Unhold identifier once the Response has been sent if (res) { @@ -226,9 +228,11 @@ self.unholdUploadIdentifiers = res => { for (const identifier of res.locals.identifiers) { self.onHold.delete(identifier) + /* if (utils.devmode) { logger.debug(`upload.onHold: ${utils.inspect(self.onHold)} -> ${utils.inspect(identifier)}`) } + */ } delete res.locals.identifiers