Skip to content

Commit

Permalink
Merge branch 'feature/38-add_option_--execute_and_--schedule_to_fixKe…
Browse files Browse the repository at this point in the history
…ys' into develop
  • Loading branch information
JoernBerkefeld committed Aug 8, 2023
2 parents 22a33eb + 899fb0e commit 6ef736a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,11 @@ const Util = {
}
const fields = Object.keys(filters);
return fields.every((field) => {
const filter = filters[field];
// to allow passing in an array via cli, e.g. --like=field1,field2, we need to convert comma separated lists into arrays
const filter =
typeof filters[field] === 'string' && filters[field].includes(',')
? filters[field].split(',')
: filters[field];
if (Array.isArray(metadata[field])) {
return metadata[field].some((f) => Util.fieldsLike(f, filter));
} else {
Expand Down

0 comments on commit 6ef736a

Please sign in to comment.