diff --git a/app/components/settings/ApiKeys.vue b/app/components/settings/ApiKeys.vue index 615651d..7f3e538 100644 --- a/app/components/settings/ApiKeys.vue +++ b/app/components/settings/ApiKeys.vue @@ -20,7 +20,9 @@ const tempKeyValues = ref<{ id: string; key: string }[]>([]); async function onCreateKey() { - const key = await authClient.apiKey.create({ name: name.value }); + const key = await authClient.apiKey.create({ + name: name.value, + }); if (key.error || !key.data) { console.error(key.error); diff --git a/notification-daemon/justfile b/notification-daemon/justfile index e040452..7f0e716 100644 --- a/notification-daemon/justfile +++ b/notification-daemon/justfile @@ -1,2 +1,2 @@ dev token: - TASK_LINE_API_TOKEN={{token}} cargo run -- -s http://localhost:3000 + TASK_LINE_API_TOKEN={{ token }} cargo run -- -s http://localhost:3000 diff --git a/notification-daemon/src/main.rs b/notification-daemon/src/main.rs index 3f1ce5c..4facb1d 100644 --- a/notification-daemon/src/main.rs +++ b/notification-daemon/src/main.rs @@ -22,18 +22,10 @@ async fn main() { let mut todos_rx = get_todos(args.server_url, token); while let Some(todos) = todos_rx.recv().await { - let todos: Vec<_> = todos - .iter() - .filter(|todo| todo.timeframe.is_some()) - .collect(); + let todos: Vec<_> = todos.iter().filter(|todo| todo.time.is_some()).collect(); for todo in todos { - println!( - "{}: {} - {}", - todo.title, - todo.timeframe.as_ref().unwrap().start, - todo.timeframe.as_ref().unwrap().end - ); + println!("{}: {:?}", todo.title, todo.time); } } }