Skip to content

Commit f39259c

Browse files
author
Ludo Galabru
committed
feat: return enable in api
1 parent f0274f5 commit f39259c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/chainhook-cli/src/service/http_api.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,16 @@ fn handle_get_predicate(
197197
"uuid": spec.uuid,
198198
"network": spec.network,
199199
"predicate": spec.predicate,
200-
"status": status
200+
"status": status,
201+
"enabled": spec.enabled,
201202
}),
202203
Ok(Some((ChainhookSpecification::Bitcoin(spec), status))) => json!({
203204
"chain": "bitcoin",
204205
"uuid": spec.uuid,
205206
"network": spec.network,
206207
"predicate": spec.predicate,
207-
"status": status
208+
"status": status,
209+
"enabled": spec.enabled,
208210
}),
209211
_ => {
210212
return Json(json!({

0 commit comments

Comments
 (0)