Skip to content

Commit

Permalink
Record the profile's IndexedAt, closest thing we'll get to creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcode committed Jun 6, 2024
1 parent 1d96700 commit f4e5029
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/hydrator/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ func (h *Hydrator) flattenFullProfile(profile *bsky.ActorDefs_ProfileViewDetaile
result["FollowersCount"] = profile.FollowersCount
result["FollowsCount"] = profile.FollowsCount
result["PostsCount"] = profile.PostsCount
result["IndexedAt"] = profile.IndexedAt

return
}
Expand Down
10 changes: 10 additions & 0 deletions pkg/output/bq/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func GetSchema() bigquery.Schema {
"name": "DisplayName",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "IndexedAt",
"type": "TIMESTAMP"
},
{
"mode": "NULLABLE",
"name": "FollowersCount",
Expand Down Expand Up @@ -123,6 +128,11 @@ func GetSchema() bigquery.Schema {
"name": "DisplayName",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "IndexedAt",
"type": "TIMESTAMP"
},
{
"mode": "NULLABLE",
"name": "FollowersCount",
Expand Down

0 comments on commit f4e5029

Please sign in to comment.