Skip to content

Commit

Permalink
Update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar committed Nov 28, 2024
1 parent 45a63b8 commit 3a10d7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Controllers/Storage/ProcessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ public async Task<ActionResult<Instance>> PutInstanceAndEvents(
{
if (string.IsNullOrWhiteSpace(instanceEvent.InstanceId))
{
return BadRequest("Missing parameter values: instance event must exist and instanceId must be set");
return BadRequest("Missing instance ID in InstanceEvent");
}
else if (instanceEvent.InstanceId != $"{instanceOwnerPartyId}/{instanceGuid}")
{
return BadRequest("Instance ID in InstanceEvent does not match the Instance ID");
}

instanceEvent.Created = instanceEvent.Created?.ToUniversalTime() ?? DateTime.UtcNow;
Expand Down

0 comments on commit 3a10d7b

Please sign in to comment.