Skip to content

Commit

Permalink
fix Issue #247 - type mismatch on SpaceID in PageCreatePayloadScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mcramer-billgo committed Oct 6, 2023
1 parent a51d437 commit 4492542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion confluence/internal/page_impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ func Test_internalPageImpl_Create(t *testing.T) {
}

mockedPayload := &model.PageCreatePayloadScheme{
SpaceID: 203718658,
SpaceID: "203718658",
Status: "current",
Title: "Page create title test",
Body: &model.PageBodyRepresentationScheme{
Expand Down
2 changes: 1 addition & 1 deletion pkg/infra/models/confluence_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type PageBodyScheme struct {
}

type PageCreatePayloadScheme struct {
SpaceID int `json:"spaceId,omitempty"`
SpaceID string `json:"spaceId,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
Body *PageBodyRepresentationScheme `json:"body,omitempty"`
Expand Down

0 comments on commit 4492542

Please sign in to comment.