From 5f6c675d4a17c6832db477c4d2a97db23a199ff5 Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Thu, 14 Aug 2025 10:21:59 -0400 Subject: [PATCH] Fix issue with querying customers by domain --- src/linear/customers/get-customer-by-name-or-domains.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/linear/customers/get-customer-by-name-or-domains.ts b/src/linear/customers/get-customer-by-name-or-domains.ts index 146ca7f..b2f730c 100644 --- a/src/linear/customers/get-customer-by-name-or-domains.ts +++ b/src/linear/customers/get-customer-by-name-or-domains.ts @@ -5,8 +5,9 @@ const queryByNameOrDomains = `query CustomerByNameOrDomains($name: String!, $dom customers( filter: { or: [ - { name: { eqIgnoreCase: $name } } + # Due to a bug on Linear's side, these clauses need to be in this order: { domains: { some: { in: $domains } } } + { name: { eqIgnoreCase: $name } } ] } first: 1