Browse Source

don't run conversions test when disabled

Henry Oswald 7 years ago
parent
commit
5eec00db51
1 changed files with 2 additions and 0 deletions
  1. 2 0
      services/filestore/app/coffee/HealthCheckController.coffee

+ 2 - 0
services/filestore/app/coffee/HealthCheckController.coffee

@@ -33,6 +33,8 @@ checkCanStoreFiles = (callback)->
 				callback(err)
 
 checkFileConvert = (callback)->
+	if !settings.enableConversions
+		return callback()
 	imgPath = path.join(settings.path.uploadFolder, "/tiny.pdf")
 	async.waterfall [
 		(cb)->