Explorar o código

Fix double-callback

Shane Kilkelly %!s(int64=9) %!d(string=hai) anos
pai
achega
59ab66fca2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/web/app/coffee/Features/Email/EmailSender.coffee

+ 1 - 1
services/web/app/coffee/Features/Email/EmailSender.coffee

@@ -41,7 +41,7 @@ else
 
 checkCanSendEmail = (options, callback)->
 	if !options.sendingUser_id? #email not sent from user, not rate limited
-		callback(null, true)
+		return callback(null, true)
 	opts = 
 		endpointName: "send_email"
 		timeInterval: 60 * 60 * 3