Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Nov 17, 2023
1 parent d82e2dd commit 872fadd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ func makeChangeEntry(logEntry *LogEntry, seqID SequenceID, channel channels.ID)
collectionID: logEntry.CollectionID,
}
// populate CurrentVersion entry if log entry has sourceID and Version populated
// This allows current version to be nil in event of CV not being populated on log entry
// allowing omitempty to work as expected
if logEntry.SourceID != "" && logEntry.Version != 0 {
change.CurrentVersion = &SourceAndVersion{SourceID: logEntry.SourceID, Version: logEntry.Version}
}
Expand Down

0 comments on commit 872fadd

Please sign in to comment.