Fixes bug preventing photo uploads (#324)

Primary bug was that requests to POST /v2/observation_photos were using the
obs serial ID instead of the obs UUID.

Another major problem was that uploads always quit before the last observation
when there were multiple observations to upload, which I address by changing
the way we set `allObsToUpload` in `useLocalObservations`.
This commit is contained in:
Ken-ichi
2022-12-31 12:46:50 -05:00
committed by GitHub
parent 30e89b9387
commit c76be140b5
7 changed files with 33 additions and 33 deletions

View File

@@ -67,7 +67,7 @@ module.exports = {
"space-in-parens": [2, "always"],
"module-resolver/use-alias": 2,
// At least before we start making production builds
"no-console": ["error", { allow: ["warn", "error"] }],
"no-console": 0,
"no-restricted-globals": 0,
"no-param-reassign": 0,
"no-var": 1,