mirror of https://github.com/kortix-ai/suna.git
fix: get back removed fn
This commit is contained in:
parent
8b6d9c0903
commit
6eb889e50a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue