From d1f35ffb5901156db949df179324d9e2906df223 Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Sun, 10 Nov 2019 16:47:39 +0200 Subject: [PATCH] fix(github): use GetPublishedAt --- pkg/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/github.go b/pkg/github/github.go index 439fc12eeb..39559cfc63 100644 --- a/pkg/github/github.go +++ b/pkg/github/github.go @@ -72,7 +72,7 @@ func (c Client) DownloadDB(ctx context.Context, fileName string) (io.ReadCloser, } sort.Slice(releases, func(i, j int) bool { - return releases[i].PublishedAt.After(releases[j].PublishedAt.Time) + return releases[i].GetPublishedAt().After(releases[j].GetPublishedAt().Time) }) prefix := fmt.Sprintf("v%d", db.SchemaVersion)