Skip to content

Commit

Permalink
feat: upgrade to dwn-sdk-js v0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
enmand committed Jun 19, 2024
1 parent f374bcb commit fe42fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/dwn-rs-stores/src/surrealdb/event_log.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use async_trait::async_trait;
use dwn_rs_core::{MapValue, Value};
use dwn_rs_core::MapValue;
use surrealdb::sql::{Id, Table, Thing};
use ulid::Ulid;

use crate::{
Cursor, EventLog, EventLogError, Filters, MessageWatermark, Pagination, Query, QueryError,
QueryReturn, StoreError, SurrealDB, SurrealDBError, SurrealQuery,
Cursor, EventLog, EventLogError, Filters, MessageWatermark, Pagination, Query, QueryReturn,
StoreError, SurrealDB, SurrealDBError, SurrealQuery,
};

use super::models::{CreateEvent, GetEvent};
Expand Down Expand Up @@ -78,7 +78,7 @@ impl EventLog for SurrealDB {
.always_cursor()
.page(Some(page));

let (mut events, cursor) = qb.query().await?;
let (events, cursor) = qb.query().await?;

Ok(QueryReturn {
items: events.into_iter().map(|e| e.cid.to_string()).collect(),
Expand Down
2 changes: 1 addition & 1 deletion crates/dwn-rs-stores/src/surrealdb/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{CursorValue, MessageSort, MessageWatermark};
use dwn_rs_core::{MapValue, Value};
use ipld_core::cid::Cid;
use serde::{Deserialize, Serialize};
use surrealdb::sql::{Id, Thing};
use surrealdb::sql::Thing;
use ulid::Ulid;

#[derive(Serialize, Deserialize, Debug)]
Expand Down

0 comments on commit fe42fc9

Please sign in to comment.