Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish Dangi committed Mar 4, 2024
1 parent f8b3bed commit 0cd4b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/postgres/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (r ReceiverRepository) Create(ctx context.Context, rcv *receiver.Receiver)
func (r ReceiverRepository) Get(ctx context.Context, id uint64, withExpand bool) (*receiver.Receiver, error) {
var receiverModel model.Receiver
if withExpand {
query, args, err := receiverListQueryBuilder.LeftJoin("receivers AS parent_receiver using `parent_id`").Where("receiver.id = ?", id).PlaceholderFormat(sq.Dollar).ToSql()
query, args, err := receiverListLeftJoinSelfQueryBuilder.LeftJoin("receivers AS parent_receiver using `parent_id`").Where("receiver.id = ?", id).PlaceholderFormat(sq.Dollar).ToSql()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0cd4b9b

Please sign in to comment.