Parcourir la source

Merge pull request #58 from sharelatex/bg-rate-limit-autocompile

fix two bugs in auto compile limit logic
Brian Gough il y a 9 ans
Parent
commit
4ce639db70

+ 4 - 1
services/web/app/coffee/Features/Compile/CompileManager.coffee

@@ -77,7 +77,10 @@ module.exports = CompileManager =
 				return callback null, true
 
 	_checkCompileGroupAutoCompileLimit: (isAutoCompile, compileGroup, callback = (err, canCompile)->)->
-		if compileGroup is "default"
+		if !isAutoCompile
+			return callback(null, true)
+		if compileGroup is "standard"
+			# apply extra limits to the standard compile group
 			CompileManager._checkIfAutoCompileLimitHasBeenHit isAutoCompile, compileGroup, callback
 		else
 			Metrics.inc "auto-compile-#{compileGroup}"