mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 14:04:28 +01:00
Merge pull request #29 from MutinyWallet/fix-blastr-broadcasts-non-nwc
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>> {
|
||||
// Determine the event kind
|
||||
match event.kind {
|
||||
Kind::WalletConnectResponse => (),
|
||||
Kind::WalletConnectRequest => (),
|
||||
_ => return Ok(None), // skip other event types
|
||||
};
|
||||
|
||||
// Create the main event insertion query.
|
||||
let event_insert_query = worker::query!(
|
||||
db,
|
||||
|
||||
Reference in New Issue
Block a user