Skip to content

Commit

Permalink
fix: use nostr id not db id
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 31, 2024
1 parent 232c89d commit 616cec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/nostr/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,15 +765,15 @@ func (svc *Service) publishRequestEvent(ctx context.Context, subscription *Subsc
if err != nil {
// TODO: notify user about publish failure
svc.Logger.WithError(err).WithFields(logrus.Fields{
"request_event_id": subscription.RequestEvent.ID,
"request_event_id": subscription.RequestEvent.NostrId,
"relay_url": subscription.RelayUrl,
"wallet_pubkey": walletPubkey,
"client_pubkey": clientPubkey,
}).Error("Failed to publish to relay")
sub.Unsub()
} else {
svc.Logger.WithFields(logrus.Fields{
"request_event_id": subscription.RequestEvent.ID,
"request_event_id": subscription.RequestEvent.NostrId,
"relay_url": subscription.RelayUrl,
"wallet_pubkey": walletPubkey,
"client_pubkey": clientPubkey,
Expand All @@ -787,7 +787,7 @@ func (svc *Service) handleResponseEvent(event *nostr.Event, subscription *Subscr

svc.Logger.WithFields(logrus.Fields{
"response_event_id": event.ID,
"request_event_id": subscription.RequestEvent.ID,
"request_event_id": subscription.RequestEvent.NostrId,
"wallet_pubkey": walletPubkey,
"client_pubkey": clientPubkey,
"relay_url": subscription.RelayUrl,
Expand Down

0 comments on commit 616cec9

Please sign in to comment.