[add] state_repository:get_last_notification_timestamp
This commit is contained in:
parent
40976759e7
commit
41c1551d7e
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue