Skip to content

Commit 2476feb

Browse files
Merge pull request #193 from CloudBoost/staging
fix plan limit response
2 parents 732e71e + ea796c0 commit 2476feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@ global.app.use([
230230
var isAppKeyValid = result[1];
231231
var isInPlan = result[0];
232232
if (!isInPlan) {
233-
res.status(402).send("Reached Plan Limit. Upgrade Plan.");
234233
//check if the appIsReleased.
235234
global.apiTracker.log(appId, "isReleased/isReleased", "", "JavaScript", true);
235+
236+
return res.status(402).send("Reached Plan Limit. Upgrade Plan.");
236237
}
237238

238239
if (!isAppKeyValid) {

0 commit comments

Comments
 (0)