Skip to content

Commit

Permalink
RHINENG-8045: fix sql: Scan error on column index 0, name \"creator\"…
Browse files Browse the repository at this point in the history
…: converting NULL to string is unsupported
  • Loading branch information
MichaelMraka committed Apr 16, 2024
1 parent 5d326f1 commit f03b611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/controllers/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func templatesCreators(db *gorm.DB, account int) ([]*string, error) {
err := db.Table("template bl").
Distinct("creator").
Joins("JOIN rh_account acc ON bl.rh_account_id = acc.id").
Where("bl.rh_account_id = ?", account).
Where("bl.rh_account_id = ? and creator IS NOT NULL", account).
Scan(&creators).Error
if err != nil {
return nil, err
Expand Down

0 comments on commit f03b611

Please sign in to comment.