Skip to content

Commit

Permalink
postgres worker: handle event if nil
Browse files Browse the repository at this point in the history
  • Loading branch information
agungdwiprasetyo committed Jan 19, 2023
1 parent 50a8403 commit c1aa354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codebase/app/postgres_worker/postgres_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (p *postgresWorker) Serve() {
}

// exec handler
if e, ok := value.Interface().(*pq.Notification); ok {
if e, ok := value.Interface().(*pq.Notification); ok && e != nil {
var payload EventPayload
json.Unmarshal([]byte(e.Extra), &payload)

Expand Down
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package candi

const (
// Version of this library
Version = "v1.13.14"
Version = "v1.13.15"
)

0 comments on commit c1aa354

Please sign in to comment.