Skip to content

Commit

Permalink
Fix bug Events maxCount
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed Feb 10, 2025
1 parent de09fb8 commit 6674e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/AasxServerBlazor/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"AasxServerBlazor": {
"commandName": "Project",
"commandLineArgs": "--no-security --save-temp 30 --secret-string-api 1234 --aasx-in-memory 1000 --data-path \"C:\\Development\\Olaf-Event-1\" --edit --external-blazor http://localhost:5001",
"commandLineArgs": "--no-security --save-temp 30 --secret-string-api 1234 --aasx-in-memory 1000 --data-path \"C:\\Development\\Olaf-Event-2\" --edit --external-blazor http://localhost:5002",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"AASREGISTRY": "",
"IFRAMEPATH": "https://dpp40-2-v2.industrialdigitaltwin.org/dashboard/submodelViewV3.html",
"Kestrel__Endpoints__Http__Url": "",
"Kestrel__Endpoints__Http__Url": "http://localhost:5002",
"EVENT2": "http://localhost:5002/submodels/aHR0cHM6Ly9pNGQuZGUvVC8zMjA5NTEwL3N1Ym1vZGVsL05hbWVwbGF0ZS9yZWNlaXZlcg/events/EventElement1"
},
"applicationUrl": "http://localhost:5001",
Expand Down
2 changes: 1 addition & 1 deletion src/AasxServerDB/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public static int changeSubmodelElement(EventData eventData, EventPayloadEntry e
}
}

if (maxCount != 0 || eventData.dataCollection == parent)
if (maxCount != 0 && eventData.dataCollection == parent)
{
SubmodelElementCollection data = eventData.dataCollection;
// if (eventData.direction != null && eventData.direction.Value == "IN" && eventData.mode != null && (eventData.mode.Value == "PUSH" || eventData.mode.Value == "PUT"))
Expand Down

0 comments on commit 6674e3c

Please sign in to comment.