Skip to content

Commit

Permalink
chore: minor spacing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Nov 7, 2024
1 parent 8fc78f1 commit 8b18359
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion internal/nostr/expo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (

func (svc *Service) NIP47ExpoNotificationHandler(c echo.Context) error {
var requestData NIP47ExpoNotificationRequest
// send in a pubkey and authenticate by signing
if err := c.Bind(&requestData); err != nil {
return c.JSON(http.StatusBadRequest, ErrorResponse{
Message: "Error decoding notification request",
Expand Down
4 changes: 2 additions & 2 deletions internal/nostr/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Subscription struct {
ID uint
RelayUrl string
WebhookUrl string
PushToken string
PushToken string
Open bool
Ids *[]string `gorm:"-"`
Kinds *[]int `gorm:"-"`
Expand Down Expand Up @@ -190,7 +190,7 @@ type NIP47ExpoNotificationRequest struct {
RelayUrl string `json:"relayUrl"`
PushToken string `json:"pushToken"`
WalletPubkey string `json:"walletPubkey"`
ConnPubkey string `json:"connectionPubkey"`
ConnPubkey string `json:"connectionPubkey"`
}

type NIP47Response struct {
Expand Down
2 changes: 1 addition & 1 deletion migrations/202404021628_add_uuid_to_subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ var _202404021628_add_uuid_to_subscriptions = &gormigrate.Migration{
}
return tx.Exec("ALTER TABLE subscriptions DROP COLUMN IF EXISTS uuid").Error
},
}
}
2 changes: 1 addition & 1 deletion migrations/202404031539_add_indexes.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ var _202404031539_add_indexes = &gormigrate.Migration{
}
return nil
},
}
}
2 changes: 1 addition & 1 deletion migrations/202411071013_add_push_token_to_subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ var _202411071013_add_push_token_to_subscriptions = &gormigrate.Migration{
}
return nil
},
}
}
2 changes: 1 addition & 1 deletion migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ func Migrate(db *gorm.DB) error {
})

return m.Migrate()
}
}

0 comments on commit 8b18359

Please sign in to comment.