From f37b41223c7471a5d59c6cf0e37ba474e31a6e65 Mon Sep 17 00:00:00 2001 From: tobinio Date: Sun, 29 Mar 2026 11:58:38 +0200 Subject: [PATCH] update notification deamon --- app/components/settings/ApiKeys.vue | 4 +++- notification-daemon/justfile | 2 +- notification-daemon/src/main.rs | 12 ++---------- 3 files changed, 6 insertions(+), 12 deletions(-) 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); } } } -- 2.51.2