Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

chore: change ttl #19

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/gh-archive-yt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (c *Service) Migrate(ctx context.Context) error {
},
}

rt := migrate.DeleteDataAfterTTL(24 * time.Hour)
rt := migrate.DeleteDataAfterTTL(24 * time.Hour * 14) // 2 weeks
rt.FillAttrs(tables[c.table].Attributes)

if err := migrate.EnsureTables(ctx, c.yc, tables, migrate.OnConflictDrop(ctx, c.yc)); err != nil {
Expand Down