diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-02-16 03:44:50 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-18 03:12:30 +0300 |
commit | 4e9019261bb583619eadae7275aaafc11a7c95c1 (patch) | |
tree | 1d58b15498aa58931d5db4f939dfd07a5c5e90b9 | |
parent | 59524733e25cb87517bd5fbe4ec0780be8e6a671 (diff) |
Do not replace entry when new one failed
-rw-r--r-- | internal/source/gitlab/cache/entry.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/entry.go b/internal/source/gitlab/cache/entry.go index c960be8a..4ea25485 100644 --- a/internal/source/gitlab/cache/entry.go +++ b/internal/source/gitlab/cache/entry.go @@ -87,6 +87,10 @@ func (e *Entry) Refresh(client api.Client, store Store) { entry.Retrieve(context.Background(), client) + if entry.response != nil && entry.response.Error != nil { + entry.response = e.response + } + store.ReplaceOrCreate(e.domain, entry) }() }) |