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, }, } );