feat: return enable in api

This commit is contained in:
Ludo Galabru
2023-06-07 16:43:25 -04:00
parent f0274f5726
commit f39259ceeb

View File

@@ -197,14 +197,16 @@ fn handle_get_predicate(
"uuid": spec.uuid,
"network": spec.network,
"predicate": spec.predicate,
"status": status
"status": status,
"enabled": spec.enabled,
}),
Ok(Some((ChainhookSpecification::Bitcoin(spec), status))) => json!({
"chain": "bitcoin",
"uuid": spec.uuid,
"network": spec.network,
"predicate": spec.predicate,
"status": status
"status": status,
"enabled": spec.enabled,
}),
_ => {
return Json(json!({