diff --git a/handledb.go b/handledb.go index 753750d..3c4744b 100644 --- a/handledb.go +++ b/handledb.go @@ -40,7 +40,7 @@ type dbDocument struct { Username string `db:"username"` DocumentID string `db:"documentid"` Percentage float64 `db:"percentage"` - Progress int64 `db:"progress"` + Progress string `db:"progress"` Device string `db:"device"` DeviceID string `db:"device_id"` Timestamp int64 `db:"timestamp"` diff --git a/kosyncsrv.go b/kosyncsrv.go index 25e4305..8a7f0fc 100644 --- a/kosyncsrv.go +++ b/kosyncsrv.go @@ -22,7 +22,7 @@ type requestHeader struct { type requestPosition struct { DocumentID string `json:"document"` Percentage float64 `json:"percentage"` - Progress int64 `json:"progress"` + Progress string `json:"progress"` Device string `json:"device"` DeviceID string `json:"device_id"` }