mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 05:54:26 +01:00
Dont process non-nwc messages to db
This commit is contained in:
@@ -137,6 +137,13 @@ pub async fn get_nwc_events(keys: &[String], kind: Kind, db: &D1Database) -> Res
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn handle_nwc_event(event: Event, db: &D1Database) -> Result<Option<RelayMessage>> {
|
pub async fn handle_nwc_event(event: Event, db: &D1Database) -> Result<Option<RelayMessage>> {
|
||||||
|
// Determine the event kind
|
||||||
|
match event.kind {
|
||||||
|
Kind::WalletConnectResponse => (),
|
||||||
|
Kind::WalletConnectRequest => (),
|
||||||
|
_ => return Ok(None), // skip other event types
|
||||||
|
};
|
||||||
|
|
||||||
// Create the main event insertion query.
|
// Create the main event insertion query.
|
||||||
let event_insert_query = worker::query!(
|
let event_insert_query = worker::query!(
|
||||||
db,
|
db,
|
||||||
|
|||||||
Reference in New Issue
Block a user