From 4b611820eb7466b825df5bf088b4ff38932752e5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 22 Mar 2021 20:42:14 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/GlobalBizSettingsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/AyaNova/Controllers/GlobalBizSettingsController.cs b/server/AyaNova/Controllers/GlobalBizSettingsController.cs index d5a35c7d..3f5fa440 100644 --- a/server/AyaNova/Controllers/GlobalBizSettingsController.cs +++ b/server/AyaNova/Controllers/GlobalBizSettingsController.cs @@ -208,8 +208,8 @@ namespace AyaNova.Api.Controllers //in v7 and int identity was used for serial numbers so the maximum possible value could be 2,147,483,647 //assuming there is some weird edge case where people want to move beyond that max value for some reason I'm settling on a sanity check of 3 billion 3,000,000,000 if (nextSeed == 0 || nextSeed > 3000000000) - return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_INVALID_VALUE, "nextSeed", "Next seed is capped at 3,000,000,000 maximum!")); - + return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_INVALID_VALUE, "nextSeed", "> 0 or < 3,000,000,000")); +todo: help page and translation keys string SequenceName = string.Empty; //confirm this number is not in use and set correct sequence name to alter switch (aType)