From 6e6d104f239509298931dc486816bfe3d5524137 Mon Sep 17 00:00:00 2001 From: Jakub Date: Mon, 6 Mar 2023 13:46:57 +0100 Subject: [PATCH] test(GODT-2442): remove all updates upon refresh all. --- server/backend/backend.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/backend/backend.go b/server/backend/backend.go index 9881d6e..c83375d 100644 --- a/server/backend/backend.go +++ b/server/backend/backend.go @@ -141,7 +141,11 @@ func (b *Backend) RefreshUser(userID string, refresh proton.RefreshFlag) error { return err } - acc.updateIDs = append(acc.updateIDs, updateID) + if refresh == proton.RefreshAll { + acc.updateIDs = []ID{updateID} + } else { + acc.updateIDs = append(acc.updateIDs, updateID) + } return nil })