Skip to content

Commit

Permalink
fix: query created_at & properties of event_queue (#3)
Browse files Browse the repository at this point in the history
* modify releaserc
  • Loading branch information
adityathebe authored Oct 2, 2023
1 parent d988a60 commit 583f4c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ plugins:
- { type: chore, release: patch }
- { type: refactor, release: patch }
- { type: feat, release: patch }
- { type: ci, release: patch }
- { type: style, release: patch }
- { type: ci, release: false }
- { type: style, release: false }
parserOpts:
noteKeywords:
- MAJOR RELEASE
Expand Down
4 changes: 3 additions & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func (t *Event) Scan(rows pgx.Row) error {
err := rows.Scan(
&t.ID,
&t.Name,
&t.CreatedAt,
&t.Properties,
&t.Error,
&t.LastAttempt,
&t.Attempts,
Expand Down Expand Up @@ -98,7 +100,7 @@ func fetchEvents(ctx Context, tx pgx.Tx, watchEvents []string, batchSize int, op
FOR UPDATE SKIP LOCKED
LIMIT @batchSize
)
RETURNING id, name, error, last_attempt, attempts
RETURNING id, name, created_at, properties, error, last_attempt, attempts
`

args := pgx.NamedArgs{
Expand Down

0 comments on commit 583f4c2

Please sign in to comment.