Skip to content

Commit

Permalink
update to make sure save values as int32
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinovpankaj committed Jun 30, 2024
1 parent 79c4ab1 commit 91582f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/tenants-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ router.route("/add").post(async function (req, res) {
website: website,
endDate: endDate,
allowedDiskSpace: allowedDiskSpace === undefined ? 10 : allowedDiskSpace,
allowedCustomFormCount:allowedCustomFormCount,
allowedCustomFormCount:allowedCustomFormCount===undefined?0:allowedCustomFormCount,
mobileUserCount: mobileUserCount === undefined ? 0 : mobileUserCount,
webUserCount: webUserCount === undefined ? 0 : webUserCount,
bothUserCount: bothUserCount === undefined ? 0 : bothUserCount,
Expand Down Expand Up @@ -322,7 +322,7 @@ router.route("/:id/increasetenantusers/:count").post(async function (req, res) {
try {
var errResponse;
const tenantId = req.params.id;
const count = req.params.count;
const count = parseInt(req.params.count);

var result = await TenantService.increaseTenantUsers(tenantId, count);
if (result.reason) {
Expand All @@ -340,7 +340,7 @@ router.route("/:id/increasecustomformcount/:count").post(async function (req, re
try {
var errResponse;
const tenantId = req.params.id;
const count = req.params.count;
const count = parseInt( req.params.count);

var result = await TenantService.increaseAllowedCustomForms(tenantId, count);
if (result.reason) {
Expand Down

0 comments on commit 91582f3

Please sign in to comment.