[add] state_repository:get_last_notification_timestamp

This commit is contained in:
Christian Fraß 2023-06-23 13:01:24 +02:00
parent 40976759e7
commit 41c1551d7e

View file

@ -111,8 +111,8 @@ namespace _heimdall.state_repository
/** /**
*/ */
export function get_last_notification_timestamp( export async function get_last_notification_timestamp(
database_path : string database_path : string,
check_name : string check_name : string
) : Promise<(null | int)> ) : 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);", "template": "SELECT MIN(timestamp) FROM results WHERE (check_name = :check_name) AND (notification_sent = TRUE);",
"arguments": { "arguments": {
"check_name": check_name, "check_name": check_name,
"limit": threshold,
}, },
} }
); );