fix: missing endpoint id

This commit is contained in:
2025-06-13 12:21:40 +01:00
parent d88f829645
commit fee5e77407
2 changed files with 4 additions and 3 deletions

View File

@ -419,10 +419,10 @@ impl Overseer for ZapStreamOverseer {
if let Some(endpoint) = self.db.get_ingest_endpoint(endpoint_id).await? {
endpoint.cost
} else {
0
bail!("Endpoint doesnt exist");
}
} else {
0
bail!("Endpoint id not set on stream");
};
// Convert duration from seconds to minutes and calculate cost