diff --git a/lib/backend/firestore/firestorebk.go b/lib/backend/firestore/firestorebk.go index 24edbb0f27e01..70a38cf10fed0 100644 --- a/lib/backend/firestore/firestorebk.go +++ b/lib/backend/firestore/firestorebk.go @@ -225,7 +225,6 @@ func newRecordFromDoc(doc *firestore.DocumentSnapshot) (*record, error) { Timestamp: br.Timestamp, Expires: br.Expires, RevisionV2: br.RevisionV2, - snapShot: doc, } default: if err := doc.DataTo(&r); err != nil { @@ -241,11 +240,12 @@ func newRecordFromDoc(doc *firestore.DocumentSnapshot) (*record, error) { Value: []byte(rl.Value), Timestamp: rl.Timestamp, Expires: rl.Expires, - snapShot: doc, } } } + r.snapShot = doc + if r.RevisionV2 == "" { r.RevisionV1 = toRevisionV1(doc.UpdateTime) }