From 1b50be55fdfc2b052dc7674d1a070044b61070e1 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Wed, 21 Aug 2024 19:32:46 +0530 Subject: [PATCH] chore: add app id to createappresponse --- api/api.go | 1 + api/models.go | 1 + frontend/src/types.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/api/api.go b/api/api.go index 856db8da..39bb8662 100644 --- a/api/api.go +++ b/api/api.go @@ -84,6 +84,7 @@ func (api *api) CreateApp(createAppRequest *CreateAppRequest) (*CreateAppRespons relayUrl := api.cfg.GetRelayUrl() responseBody := &CreateAppResponse{} + responseBody.Id = app.ID responseBody.Name = createAppRequest.Name responseBody.Pubkey = app.NostrPubkey responseBody.PairingSecret = pairingSecretKey diff --git a/api/models.go b/api/models.go index 5c514b8b..7bc9609b 100644 --- a/api/models.go +++ b/api/models.go @@ -138,6 +138,7 @@ type CreateAppResponse struct { PairingUri string `json:"pairingUri"` PairingSecret string `json:"pairingSecretKey"` Pubkey string `json:"pairingPublicKey"` + Id uint `json:"id"` Name string `json:"name"` ReturnTo string `json:"returnTo"` } diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 4f51fd1f..c389f060 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -167,6 +167,7 @@ export interface CreateAppRequest { } export interface CreateAppResponse { + id: number; name: string; pairingUri: string; pairingPublicKey: string;