mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 16:52:57 +08:00
feat: return enable in api
This commit is contained in:
@@ -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!({
|
||||
|
||||
Reference in New Issue
Block a user