Skip to content

Commit bda676f

Browse files
committed
fix(org): save org properties and correct migration to 118
Signed-off-by: jaydeep869 <jaydeeppokhariya2106@gmail.com>
1 parent cae8441 commit bda676f

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

database/migrations/000117_organization_entity.down.sql renamed to database/migrations/000118_organization_entity.down.sql

File renamed without changes.
File renamed without changes.

internal/providers/github/properties/organization.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package properties
66
import (
77
"context"
88
"fmt"
9+
"time"
910

1011
go_github "github.com/google/go-github/v63/github"
1112

@@ -92,7 +93,7 @@ func fetchOrganizationProperties(
9293
}
9394
}
9495
if user.CreatedAt != nil {
95-
result[properties.OrgPropertyCreatedAt] = user.GetCreatedAt().Time
96+
result[properties.OrgPropertyCreatedAt] = user.GetCreatedAt().Time.Format(time.RFC3339)
9697
}
9798
if user.Plan != nil {
9899
result[properties.OrgPropertyPlanName] = user.GetPlan().GetName()

0 commit comments

Comments
 (0)