From cd2775bf1c9dd76a954fc15c247286cd9b77745e Mon Sep 17 00:00:00 2001 From: David Cramer Date: Fri, 2 Aug 2024 19:36:16 -0700 Subject: [PATCH] Ignore gift set names --- apps/server/src/trpc/routes/priceCreateBatch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/trpc/routes/priceCreateBatch.ts b/apps/server/src/trpc/routes/priceCreateBatch.ts index 7a1910ae..d04a2e11 100644 --- a/apps/server/src/trpc/routes/priceCreateBatch.ts +++ b/apps/server/src/trpc/routes/priceCreateBatch.ts @@ -68,7 +68,9 @@ export default adminProcedure }) .onConflictDoNothing(); - const ignored = !!name.match(/ (bundle|gifting set|\d+ pack)$/i); + const ignored = !!name.match( + / (bundle|gifting set|gift set|\d+ pack)$/i, + ); if (bottleId) { await upsertBottleAlias(tx, name, bottleId);