From 6ab3b2a274c1c64ee05c5607d8c3754670fbfd64 Mon Sep 17 00:00:00 2001
From: Jason Rasmussen <jrasm91@gmail.com>
Date: Sat, 10 Feb 2024 20:47:48 -0500
Subject: [PATCH] fix(cli): broken fetch client (#7020)

---
 open-api/bin/generate-open-api.sh           | 2 +-
 open-api/typescript-sdk/tsconfig.fetch.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/open-api/bin/generate-open-api.sh b/open-api/bin/generate-open-api.sh
index a3b9cccb0d..76012383cf 100755
--- a/open-api/bin/generate-open-api.sh
+++ b/open-api/bin/generate-open-api.sh
@@ -19,7 +19,7 @@ function dart {
 function typescript {
   rm -rf ./typescript-sdk/client
   npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ./typescript-sdk/axios-client --additional-properties=useSingleRequestParameter=true,supportsES6=true
-  npx oazapfts --optimistic --argumentStyle=object immich-openapi-specs.json typescript-sdk/fetch-client.ts
+  npx --yes oazapfts --optimistic --argumentStyle=object immich-openapi-specs.json typescript-sdk/fetch-client.ts
   npm --prefix typescript-sdk ci && npm --prefix typescript-sdk run build
 }
 
diff --git a/open-api/typescript-sdk/tsconfig.fetch.json b/open-api/typescript-sdk/tsconfig.fetch.json
index 37c633ea10..58ef1ffa6b 100644
--- a/open-api/typescript-sdk/tsconfig.fetch.json
+++ b/open-api/typescript-sdk/tsconfig.fetch.json
@@ -1,5 +1,5 @@
 {
-  "include": ["fetch.ts", "fetch-client/**/*"],
+  "include": ["fetch.ts"],
   "compilerOptions": {
     "target": "esnext",
     "strict": true,