Skip to content

Commit

Permalink
fix(parser): correct find query for customvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Sep 7, 2023
1 parent a35f559 commit f2d1f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/parser/internal/variables/custom_var/custom_var.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var CustomVar = &types.Variable{
v := &model.ChannelsCustomvars{}
err := parseCtx.Services.Gorm.
WithContext(ctx).
Where(`"channelId" = ? "name" = ?`, parseCtx.Channel.ID, variableData.Params).
Where(`"channelId" = ? AND "name" = ?`, parseCtx.Channel.ID, variableData.Params).
Find(v).Error
if err != nil {
parseCtx.Services.Logger.Sugar().Error(err)
Expand Down

0 comments on commit f2d1f3c

Please sign in to comment.