mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 09:51:47 -06:00
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:
@@ -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": {
|
||||
|
||||
@@ -15,7 +15,8 @@ AttendanceTracker setVariable ["missionContext", createHashMapFromArray [
|
||||
["serverName", serverName],
|
||||
["serverProfile", profileName],
|
||||
["missionStart", AttendanceTracker_missionStartTimestamp],
|
||||
["missionHash", AttendanceTracker_missionHash]
|
||||
["missionHash", AttendanceTracker_missionHash],
|
||||
["worldName", toLower worldName]
|
||||
]];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user