Skip to content

Commit

Permalink
Use whereIn (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner authored Jan 9, 2025
1 parent 18e70a2 commit ac259d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controllers/user_devices_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (udc *UserDevicesController) GetUserDevices(c *fiber.Ctx) error {
for key, udai := range toCheck {
clause := qm.Expr(
qmhelper.Where("token_id", qmhelper.EQ, key.TokenID),
qmhelper.Where("source", "IN", integrationIDToCHSource(key.IntegrationID)),
qm.WhereIn("source IN ?", integrationIDToCHSource(key.IntegrationID)),
qmhelper.Where("timestamp", qmhelper.GT, udai.UpdatedAt))
if len(innerList) == 0 {
innerList = append(innerList, clause)
Expand Down

0 comments on commit ac259d1

Please sign in to comment.