Changes:
- fixed alerts-worker
This commit is contained in:
parent
d13bd0dee6
commit
308e4ed09b
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
"openreplay/backend/pkg/db/postgres"
|
||||
"openreplay/backend/pkg/env"
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
@ -24,6 +25,7 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer pgs.Close()
|
||||
|
||||
manager := NewManager(NOTIFICATIONS_STRING, POSTGRES_STRING, pgs, pg)
|
||||
if err := pg.IterateAlerts(func(a *postgres.Alert, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue