Przeglądaj źródła

Fix double-callback

Shane Kilkelly 9 lat temu
rodzic
commit
59ab66fca2

+ 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