From 6eb889e50a96a09b33bef0e6c61f573905c0d428 Mon Sep 17 00:00:00 2001 From: Vukasin Date: Sun, 4 May 2025 15:52:19 +0200 Subject: [PATCH] fix: get back removed fn --- frontend/src/lib/api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 864f238a..bf07d5ed 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -1048,6 +1048,10 @@ export const updateThread = async (threadId: string, data: Partial): Pro return updatedThread; }; +export const toggleThreadPublicStatus = async (threadId: string, isPublic: boolean): Promise => { + return updateThread(threadId, { is_public: isPublic }); +}; + // Function to get public projects export const getPublicProjects = async (): Promise => { try {