Skip to content

Commit ea796c0

Browse files
committed
fix plan limit response
1 parent 759812e commit ea796c0

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)