Skip to content

Commit 53129bb

Browse files
adityathebemoshloop
authored andcommitted
fix: filtering by external created by
1 parent 6779043 commit 53129bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

query/config_changes.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ func FindCatalogChanges(ctx context.Context, req CatalogChangesSearchRequest) (*
333333
}
334334

335335
if req.externalCreatedBy != "" {
336-
clauses = append(clauses, clause.Eq{Column: clause.Column{Name: "external_created_by"}, Value: req.externalCreatedBy})
336+
clause, err := parseAndBuildFilteringQuery(req.externalCreatedBy, "external_created_by", true)
337+
if err != nil {
338+
return nil, api.Errorf(api.EINVALID, fmt.Sprintf("failed to parse external createdby: %v", err))
339+
}
340+
clauses = append(clauses, clause...)
337341
}
338342

339343
table := query.Table("catalog_changes")

0 commit comments

Comments
 (0)