mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-16 08:59:35 +00:00
fix: missing endpoint id
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user