From 41c1551d7e3f605179b76eba71e1d715e5cb7760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Fri, 23 Jun 2023 13:01:24 +0200 Subject: [PATCH] [add] state_repository:get_last_notification_timestamp --- source/logic/state_repository.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/logic/state_repository.ts b/source/logic/state_repository.ts index 0fceb43..f28d0d4 100644 --- a/source/logic/state_repository.ts +++ b/source/logic/state_repository.ts @@ -111,8 +111,8 @@ namespace _heimdall.state_repository /** */ - export function get_last_notification_timestamp( - database_path : string + export async function get_last_notification_timestamp( + database_path : string, check_name : string ) : Promise<(null | int)> { @@ -122,7 +122,6 @@ namespace _heimdall.state_repository "template": "SELECT MIN(timestamp) FROM results WHERE (check_name = :check_name) AND (notification_sent = TRUE);", "arguments": { "check_name": check_name, - "limit": threshold, }, } );