Inspection batch observers bug
When uploading inspection batch and attaching observers to Inspection - the observers do not get attached. There is a bug which connects observers to transect in InspectionBatchAddMutation
, where it should be connected to Inspection.
Example request:
{
"query": "mutation batchAddInspection($input: batchAddInspectionInput!) {\n batchAddInspection(input: $input) {\n inspection {\n _id\n }\n }\n}\n",
"variables": {
"input": {
"inspectionBatch": {
"id": "6TVXgTWWUBtIZYdq2OupW",
"transectId": "/tagfalter-monitoring-api/index.php/transects/1",
"observerIds": [
"/tagfalter-monitoring-api/index.php/users/28"
],
"dateTimeFrom": "2022-02-07T15:42:48.113Z",
"dateTimeTo": "2022-02-07T15:42:57.485Z",
"windBegin": null,
"windEnd": null,
"tempBegin": null,
"tempEnd": null,
"cloudinessBegin": null,
"cloudinessEnd": null,
"comment": null,
"sectionEvents": [
{
"comment": null,
"imageRefIds": null,
"observations": null,
"sectionId": "/tagfalter-monitoring-api/index.php/sections/2"
},
{
"comment": null,
"imageRefIds": null,
"observations": null,
"sectionId": "/tagfalter-monitoring-api/index.php/sections/4"
},
{
"comment": null,
"imageRefIds": null,
"observations": null,
"sectionId": "/tagfalter-monitoring-api/index.php/sections/5"
}
]
}
}
}
}