Просмотр исходного кода

Revert "impl updateAiAssistant()"

This reverts commit 47e74ce3a570a281fb6fc7222774ff6254c86867.
Shun Miyazawa 1 год назад
Родитель
Сommit
0bf238ab9f
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      apps/app/src/features/openai/client/services/ai-assistant.ts

+ 1 - 5
apps/app/src/features/openai/client/services/ai-assistant.ts

@@ -1,4 +1,4 @@
-import { apiv3Post, apiv3Put, apiv3Delete } from '~/client/util/apiv3-client';
+import { apiv3Post, apiv3Delete } from '~/client/util/apiv3-client';
 
 import type { UpsertAiAssistantData } from '../../interfaces/ai-assistant';
 
@@ -6,10 +6,6 @@ export const createAiAssistant = async(body: UpsertAiAssistantData): Promise<voi
   await apiv3Post('/openai/ai-assistant', body);
 };
 
-export const updateAiAssistant = async(id: string, body: UpsertAiAssistantData): Promise<void> => {
-  await apiv3Put(`/openai/ai-assistant/${id}`, body);
-};
-
 export const deleteAiAssistant = async(id: string): Promise<void> => {
   await apiv3Delete(`/openai/ai-assistant/${id}`);
 };