Attic is a cozy space with lofty ambitions. attic.social

use locals rpc client

dbushell.com 3e138124 bbad00da

verified
+2 -4
+2 -4
src/routes/+page.server.ts
··· 46 46 const record = parseActorProfile({ 47 47 displayName: formData.get("displayName"), 48 48 }); 49 - const rpc = new Client({ handler: user.session }); 50 - const result = await rpc.post("com.atproto.repo.putRecord", { 49 + const result = await user.client.post("com.atproto.repo.putRecord", { 51 50 input: { 52 51 repo: user.did, 53 52 collection: "social.attic.actor.profile", ··· 77 76 if (user === undefined) { 78 77 return; 79 78 } 80 - const rpc = new Client({ handler: user.session }); 81 - const result = await rpc.post("com.atproto.repo.deleteRecord", { 79 + const result = await user.client.post("com.atproto.repo.deleteRecord", { 82 80 input: { 83 81 repo: user.did, 84 82 collection: "social.attic.actor.profile",