fix: tag recording in ended stream event

This commit is contained in:
2025-06-20 10:46:26 +01:00
parent b1ebf75244
commit e6bddcf641
3 changed files with 78 additions and 48 deletions

View File

@ -358,10 +358,10 @@ impl ZapStreamDb {
}
/// Get ingest endpoint by id
pub async fn get_ingest_endpoint(&self, endpoint_id: u64) -> Result<Option<IngestEndpoint>> {
pub async fn get_ingest_endpoint(&self, endpoint_id: u64) -> Result<IngestEndpoint> {
Ok(sqlx::query_as("select * from ingest_endpoint where id = ?")
.bind(endpoint_id)
.fetch_optional(&self.db)
.fetch_one(&self.db)
.await?)
}