Browse Source

lib/model: Correct type of event data (fixes #8294) (#8295)

These things are fragile, every event should use an ${eventType}Data struct or something instead.
Jakob Borg 3 years ago
parent
commit
623ec03dad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/model/folder.go

+ 1 - 1
lib/model/folder.go

@@ -1065,7 +1065,7 @@ func (f *folder) setWatchError(err error, nextTryIn time.Duration) {
 	f.watchErr = err
 	f.watchMut.Unlock()
 	if err != prevErr {
-		data := map[string]string{
+		data := map[string]interface{}{
 			"folder": f.ID,
 		}
 		if prevErr != nil {