Skip to content

Commit

Permalink
refactor: add id for configsGetAll (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reditiny authored Dec 16, 2024
1 parent 7bb6c65 commit 7cc65a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func ConfigsGetAll(ctx *ctx.Context) ([]*Configs, error) { // select built-in ty
}

var lst []*Configs
err := DB(ctx).Model(&Configs{}).Select("ckey, cval").
err := DB(ctx).Model(&Configs{}).Select("id, ckey, cval").
Where("ckey!='' and external=? ", 0).Find(&lst).Error
if err != nil {
return nil, errors.WithMessage(err, "failed to query configs")
Expand Down

0 comments on commit 7cc65a2

Please sign in to comment.