fix: get back removed fn

This commit is contained in:
Vukasin 2025-05-04 15:52:19 +02:00
parent 8b6d9c0903
commit 6eb889e50a
1 changed files with 4 additions and 0 deletions

View File

@ -1048,6 +1048,10 @@ export const updateThread = async (threadId: string, data: Partial<Thread>): Pro
return updatedThread; return updatedThread;
}; };
export const toggleThreadPublicStatus = async (threadId: string, isPublic: boolean): Promise<Thread> => {
return updateThread(threadId, { is_public: isPublic });
};
// Function to get public projects // Function to get public projects
export const getPublicProjects = async (): Promise<Project[]> => { export const getPublicProjects = async (): Promise<Project[]> => {
try { try {