This commit is contained in:
@@ -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
|
//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
|
//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)
|
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;
|
string SequenceName = string.Empty;
|
||||||
//confirm this number is not in use and set correct sequence name to alter
|
//confirm this number is not in use and set correct sequence name to alter
|
||||||
switch (aType)
|
switch (aType)
|
||||||
|
|||||||
Reference in New Issue
Block a user