Skip to content
Snippets Groups Projects
Unverified Commit ff613023 authored by Bruno Michel's avatar Bruno Michel Committed by GitHub
Browse files

Fix loading triggers with mem scheduler when the stack starts (#3453)

parent af971f9c
Branches
Tags 1.5.7
No related merge requests found
......@@ -10,6 +10,7 @@ import (
"sync"
"time"
"github.com/cozy/cozy-stack/model/instance"
"github.com/cozy/cozy-stack/pkg/consts"
"github.com/cozy/cozy-stack/pkg/couchdb"
"github.com/cozy/cozy-stack/pkg/logger"
......@@ -65,7 +66,7 @@ func (s *memScheduler) StartScheduler(b Broker) error {
var ts []*TriggerInfos
err := couchdb.ForeachDocs(prefixer.GlobalPrefixer, consts.Instances, func(_ string, data json.RawMessage) error {
db := prefixer.GlobalPrefixer
db := &instance.Instance{}
if err := json.Unmarshal(data, db); err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment