Ensure store does initial resync

This commit is contained in:
Lea Anthony 2021-01-25 21:02:36 +11:00
commit 95a95d1750
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -146,9 +146,13 @@ func (s *Store) setupListener() {
// Resetting the curent data will resync
s.resync()
})
// Do initial resync
s.resync()
}
func (s *Store) resync() {
// Stringify data
newdata, err := json.Marshal(s.data.Interface())
if err != nil {