From 6c28492e5fb34b723f0c85884024da6b993130d6 Mon Sep 17 00:00:00 2001 From: Casey Matt Date: Sat, 9 Nov 2024 14:29:07 -0500 Subject: [PATCH] fix: Correct null id check in retrieveStripeCustomer --- api/src/services/customers/customers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/services/customers/customers.ts b/api/src/services/customers/customers.ts index 339a965..8bfe344 100644 --- a/api/src/services/customers/customers.ts +++ b/api/src/services/customers/customers.ts @@ -26,7 +26,7 @@ export const retrieveStripeCustomer = async ({ }: QueryRetrieveStripeCustomerArgs): Promise> => { const { id, addProps } = data ?? {}; - if (id !== null) { + if (id == null) { throw nonNilAssertionError("retrieveStripeCustomer:id", data); }