From 8b183597fc2eb7ae8a1dc198f4f8f648c84a5584 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Fri, 8 Nov 2024 01:20:24 +0530 Subject: [PATCH] chore: minor spacing fixes --- internal/nostr/expo.go | 1 - internal/nostr/models.go | 4 ++-- migrations/202404021628_add_uuid_to_subscriptions.go | 2 +- migrations/202404031539_add_indexes.go | 2 +- migrations/202411071013_add_push_token_to_subscriptions.go | 2 +- migrations/migrate.go | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/internal/nostr/expo.go b/internal/nostr/expo.go index e2f5e1f..a4b1650 100644 --- a/internal/nostr/expo.go +++ b/internal/nostr/expo.go @@ -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", diff --git a/internal/nostr/models.go b/internal/nostr/models.go index ae42993..ff16e26 100644 --- a/internal/nostr/models.go +++ b/internal/nostr/models.go @@ -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:"-"` @@ -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 { diff --git a/migrations/202404021628_add_uuid_to_subscriptions.go b/migrations/202404021628_add_uuid_to_subscriptions.go index 8e09c78..af515c3 100644 --- a/migrations/202404021628_add_uuid_to_subscriptions.go +++ b/migrations/202404021628_add_uuid_to_subscriptions.go @@ -20,4 +20,4 @@ var _202404021628_add_uuid_to_subscriptions = &gormigrate.Migration{ } return tx.Exec("ALTER TABLE subscriptions DROP COLUMN IF EXISTS uuid").Error }, -} \ No newline at end of file +} diff --git a/migrations/202404031539_add_indexes.go b/migrations/202404031539_add_indexes.go index 8475cd3..1b8b81b 100644 --- a/migrations/202404031539_add_indexes.go +++ b/migrations/202404031539_add_indexes.go @@ -28,4 +28,4 @@ var _202404031539_add_indexes = &gormigrate.Migration{ } return nil }, -} \ No newline at end of file +} diff --git a/migrations/202411071013_add_push_token_to_subscriptions.go b/migrations/202411071013_add_push_token_to_subscriptions.go index 2c54710..617e60f 100644 --- a/migrations/202411071013_add_push_token_to_subscriptions.go +++ b/migrations/202411071013_add_push_token_to_subscriptions.go @@ -20,4 +20,4 @@ var _202411071013_add_push_token_to_subscriptions = &gormigrate.Migration{ } return nil }, -} \ No newline at end of file +} diff --git a/migrations/migrate.go b/migrations/migrate.go index 6fc528f..058cc72 100644 --- a/migrations/migrate.go +++ b/migrations/migrate.go @@ -16,4 +16,4 @@ func Migrate(db *gorm.DB) error { }) return m.Migrate() -} \ No newline at end of file +}