Skip to content

Commit

Permalink
chore: add app id to createappresponse
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Aug 21, 2024
1 parent 6da4dbd commit 1b50be5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions api/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export interface CreateAppRequest {
}

export interface CreateAppResponse {
id: number;
name: string;
pairingUri: string;
pairingPublicKey: string;
Expand Down

0 comments on commit 1b50be5

Please sign in to comment.