move the version to context.app

This commit is contained in:
Tamo 2021-10-20 14:24:34 +02:00 committed by marin postma
parent 5395041dcb
commit cfcd3ae048
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9

View File

@ -60,7 +60,6 @@ mod segment {
})
});
let infos = json!({
"version": env!("CARGO_PKG_VERSION").to_string(),
"env": opt.env.clone(),
"has_snapshot": opt.schedule_snapshot,
});
@ -137,6 +136,11 @@ mod segment {
.lock()
.await
.push(Identify {
context: Some(json!({
"app": {
"version": env!("CARGO_PKG_VERSION").to_string(),
},
})),
user,
traits,
..Default::default()