Skip to content

Commit

Permalink
Convert memory to int64 (#233)
Browse files Browse the repository at this point in the history
* Convert memory to an int64

* Convert memory to an int64
  • Loading branch information
iheanyi authored Feb 26, 2025
1 parent 5749c2b commit 5c3cdb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion planetscale/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ClusterSKU struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
CPU string `json:"cpu"`
Memory string `json:"ram"`
Memory int64 `json:"ram,string"`

SortOrder int64 `json:"sort_order"`

Expand Down
4 changes: 2 additions & 2 deletions planetscale/organizations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestOrganizations_ListClusterSKUs(t *testing.T) {
Name: "PS_10",
DisplayName: "PS-10",
CPU: "1/8",
Memory: "1",
Memory: 1,
Enabled: true,
DefaultVTGate: "VTG_5",
SortOrder: 1,
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestOrganizations_ListClusterSKUsWithRates(t *testing.T) {
Name: "PS_10",
DisplayName: "PS-10",
CPU: "1/8",
Memory: "1",
Memory: 1,
Enabled: true,
Storage: Pointer[int64](100),
Rate: Pointer[int64](39),
Expand Down

0 comments on commit 5c3cdb8

Please sign in to comment.