mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-08-03 23:11:28 +02:00
added database
This commit is contained in:
+10
-1
@@ -95,7 +95,15 @@ async fn main() -> Result<(), MagicAnyError> {
|
||||
let conf2 = conf2.clone();
|
||||
tokio::spawn(async move {
|
||||
// TODO: add number to increment
|
||||
let res = put_list(&item, &ItemData { checked: false }, &conf2).await;
|
||||
let res = put_list(
|
||||
&item,
|
||||
&ItemData {
|
||||
checked: false,
|
||||
amount: 1,
|
||||
},
|
||||
&conf2,
|
||||
)
|
||||
.await;
|
||||
if let Err(err) = res {
|
||||
eprintln!("{err:?}");
|
||||
}
|
||||
@@ -122,6 +130,7 @@ async fn main() -> Result<(), MagicAnyError> {
|
||||
&item.name,
|
||||
&ItemData {
|
||||
checked: item.checked,
|
||||
amount: 1,
|
||||
},
|
||||
&conf2,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user