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.
This commit is contained in:
Jakob Borg 2022-04-21 15:45:31 +02:00 committed by GitHub
parent c0de42e3df
commit 623ec03dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {