Skip to content

Commit 0100eb6

Browse files
authored
Made it possible to include hashtypes in healthcheck (#1183)
1 parent 1e77259 commit 0100eb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/inc/apiv2/model/healthchecks.routes.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
use DBA\Factory;
33

44
use DBA\CrackerBinary;
5+
use DBA\HashType;
56
use DBA\HealthCheck;
67
use DBA\HealthCheckAgent;
78

@@ -26,6 +27,12 @@ public static function getToOneRelationships(): array {
2627
'relationType' => CrackerBinary::class,
2728
'relationKey' => CrackerBinary::CRACKER_BINARY_ID,
2829
],
30+
'hashType' => [
31+
'key' => HealthCheck::HASHTYPE_ID,
32+
33+
'relationType' => HashType::class,
34+
'relationKey' => HashType::HASH_TYPE_ID,
35+
]
2936
];
3037
}
3138

0 commit comments

Comments
 (0)