a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove client-ends which are bugging out because of funciton re=use

-6
-1
app/page.tsx
··· 49 49 return { permissionToken, rights, entity, entity_set }; 50 50 }, 51 51 ); 52 - client.end(); 53 52 // Here i need to pass the permission token instead of the doc_id 54 53 // In the replicache provider I guess I need to fetch the relevant stuff of the permission token? 55 54 return (
-1
components/ShareOptions/getShareLink.ts
··· 65 65 return newToken; 66 66 }); 67 67 68 - client.end(); 69 68 return link; 70 69 }
-1
src/replicache/pull.ts
··· 27 27 let { data } = await supabase.rpc("get_facts", { root: rootEntity }); 28 28 let facts = data || []; 29 29 let clientGroup = await getClientGroup(db, body.clientGroupID); 30 - client.end(); 31 30 32 31 return { 33 32 cookie: Date.now(),
-3
src/replicache/push.ts
··· 22 22 token: { id: string }, 23 23 ): Promise<PushResponse | undefined> { 24 24 if (pushRequest.pushVersion !== 1) { 25 - client.end(); 26 - 27 25 return { error: "VersionNotSupported", versionType: "push" }; 28 26 } 29 27 let clientGroup = await getClientGroup(db, pushRequest.clientGroupID); ··· 72 70 payload: { message: "poke" }, 73 71 }); 74 72 supabase.removeChannel(channel); 75 - client.end(); 76 73 return undefined; 77 74 }