aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/sync.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2021-05-09 22:31:11 +0100
committerGitHub <noreply@github.com>2021-05-09 22:31:11 +0100
commitc16a26cdbfdfcbd15549165b08b2c4c80eecc3f0 (patch)
tree08ee40ccbd619ec8915d2183606e8a418ca574ac /atuin-client/src/sync.rs
parentsome changes :shrug: (#83) (diff)
downloadatuin-c16a26cdbfdfcbd15549165b08b2c4c80eecc3f0.zip
Fix sync (#95)
The data part of the add history request is actually a string. I don't want to introduce any structure here, and would rather keep it as "just a blob". Even if that blob has structure secretly! My fault for missing this in the last review
Diffstat (limited to '')
-rw-r--r--atuin-client/src/sync.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/atuin-client/src/sync.rs b/atuin-client/src/sync.rs
index 16524fc6..c1c02b0a 100644
--- a/atuin-client/src/sync.rs
+++ b/atuin-client/src/sync.rs
@@ -107,6 +107,8 @@ async fn sync_upload(
for i in last {
let data = encrypt(&i, &key)?;
+ let data = serde_json::to_string(&data)?;
+
let add_hist = AddHistoryRequest {
id: i.id.into(),
timestamp: i.timestamp,