Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
4a91a564bf
commit
208b14583e
@ -5,8 +5,8 @@ use crate::{
|
|||||||
create_item::{self, CreateItem, CreateItemExt},
|
create_item::{self, CreateItem, CreateItemExt},
|
||||||
create_root::{self, CreateRoot, CreateRootExt},
|
create_root::{self, CreateRoot, CreateRootExt},
|
||||||
create_section::{self, CreateSection, CreateSectionExt},
|
create_section::{self, CreateSection, CreateSectionExt},
|
||||||
toggle_item::{ToggleItem, ToggleItemExt},
|
toggle_item::{self, ToggleItem, ToggleItemExt},
|
||||||
update_item::{UpdateItem, UpdateItemExt},
|
update_item::{self, UpdateItem, UpdateItemExt},
|
||||||
},
|
},
|
||||||
state::SharedState,
|
state::SharedState,
|
||||||
};
|
};
|
||||||
@ -114,7 +114,7 @@ impl Commander {
|
|||||||
state,
|
state,
|
||||||
} => {
|
} => {
|
||||||
self.update_item
|
self.update_item
|
||||||
.execute(crate::services::update_item::Request {
|
.execute(update_item::Request {
|
||||||
root,
|
root,
|
||||||
path,
|
path,
|
||||||
title,
|
title,
|
||||||
@ -127,7 +127,7 @@ impl Commander {
|
|||||||
}
|
}
|
||||||
Command::ToggleItem { root, path } => {
|
Command::ToggleItem { root, path } => {
|
||||||
self.toggle_item
|
self.toggle_item
|
||||||
.execute(crate::services::toggle_item::Request { root, path })
|
.execute(toggle_item::Request { root, path })
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user