This commit is contained in:
@@ -47,9 +47,10 @@ namespace AyaNova.Api.Controllers
|
||||
/// "Huge" - Used for automated testing and development, if you choose this it will take a very long time (15 minutes to overnight)
|
||||
/// </summary>
|
||||
/// <param name="size">Valid values are "Small", "Medium", "Large", "Huge"</param>
|
||||
/// <param name="timeZoneOffset">Value in hours of local time zone offset from UTC / GMT. This ensures that data is generated relative to the desired time zone</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("seed/{size}")]
|
||||
public ActionResult SeedTrialDatabase([FromRoute] string size)
|
||||
public ActionResult SeedTrialDatabase([FromRoute] string size,[FromRoute] decimal timeZoneOffset )
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
{
|
||||
@@ -90,7 +91,8 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
JObject o = JObject.FromObject(new
|
||||
{
|
||||
seedLevel = seedLevel
|
||||
seedLevel = seedLevel,
|
||||
timeZoneOffset=timeZoneOffset
|
||||
});
|
||||
|
||||
OpsJob j = new OpsJob();
|
||||
|
||||
Reference in New Issue
Block a user