bug fixes

- fixes world/mission log race condition w/ new foreign key constraint in DB
- fixes missing world_id sent with mission rows
- adds worldName to missionContext hash in sqf
This commit is contained in:
2023-06-28 21:54:57 -07:00
parent dbd3d68537
commit fc53ecb770
5 changed files with 51 additions and 24 deletions

View File

@@ -50,14 +50,6 @@ addMissionEventHandler ["ExtensionCallback", {
// close any null disconnect values from previous mission
"AttendanceTracker" callExtension ["fillLastMissionNull", []];
// log mission info and get back the row Id to send with future messages
private _response = "AttendanceTracker" callExtension [
"logMission",
[
[AttendanceTracker getVariable ["missionContext", createHashMap]] call CBA_fnc_encodeJSON
]
];
// log world info
private _response = "AttendanceTracker" callExtension [
"logWorld",
@@ -65,6 +57,14 @@ addMissionEventHandler ["ExtensionCallback", {
[(call attendanceTracker_fnc_getWorldInfo)] call CBA_fnc_encodeJSON
]
];
// log mission info and get back the row Id to send with future messages
private _response = "AttendanceTracker" callExtension [
"logMission",
[
[AttendanceTracker getVariable ["missionContext", createHashMap]] call CBA_fnc_encodeJSON
]
];
};
};
case "writeMissionInfo": {

View File

@@ -15,7 +15,8 @@ AttendanceTracker setVariable ["missionContext", createHashMapFromArray [
["serverName", serverName],
["serverProfile", profileName],
["missionStart", AttendanceTracker_missionStartTimestamp],
["missionHash", AttendanceTracker_missionHash]
["missionHash", AttendanceTracker_missionHash],
["worldName", toLower worldName]
]];