Jul 21 - Update to support photos' timestamp/location
This commit is contained in:
@@ -301,9 +301,15 @@ class SyncManager: ObservableObject {
|
||||
|
||||
for photo in pending {
|
||||
do {
|
||||
// Capture metadata was recorded at the shutter, not now — the
|
||||
// sync may run hours after an offline capture, and the server
|
||||
// burns these values into the photo as its timestamp/GPS bar.
|
||||
let serverPath = try await APIClient.shared.uploadPhoto(
|
||||
localPath: photo.localFilePath,
|
||||
entityType: photo.entityType
|
||||
entityType: photo.entityType,
|
||||
capturedAt: photo.capturedAt,
|
||||
latitude: photo.captureLatitude,
|
||||
longitude: photo.captureLongitude
|
||||
)
|
||||
photo.serverPath = serverPath
|
||||
photo.uploadStatus = "uploaded"
|
||||
|
||||
Reference in New Issue
Block a user