Skip to content

Commit c77837b

Browse files
committed
Fixed Snapshot StoreAdapter in SignedEntityStore
1 parent d3da289 commit c77837b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mithril-aggregator/src/database/provider/signed_entity.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use sqlite::{Connection, Value};
55
use async_trait::async_trait;
66

77
use mithril_common::{
8-
entities::{SignedEntityType, Snapshot},
8+
entities::{Beacon, SignedEntityType, Snapshot},
99
sqlite::{
1010
EntityCursor, HydrationError, Projection, Provider, SourceAlias, SqLiteEntity,
1111
WhereCondition,
@@ -359,7 +359,9 @@ impl StoreAdapter for SignedEntityStoreAdapter {
359359
let connection = &*self.connection.lock().await;
360360
let provider = SignedEntityRecordProvider::new(connection);
361361
let cursor = provider
362-
.get_all()
362+
.get_by_signed_entity_type(SignedEntityType::CardanoImmutableFilesFull(
363+
Beacon::default(),
364+
))
363365
.map_err(|e| AdapterError::GeneralError(format!("{e}")))?;
364366
let signed_entities: Vec<Snapshot> = cursor.map(|se| se.into()).collect();
365367
Ok(Box::new(signed_entities.into_iter()))

0 commit comments

Comments
 (0)