atmosphere explorer
0
fork

Configure Feed

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

switch to applyWrites for updates

Juliet c141b1fb 5cf1c762

+9 -4
+9 -4
src/components/create.tsx
··· 153 153 return; 154 154 } 155 155 } else { 156 - const res = await rpc.post("com.atproto.repo.putRecord", { 156 + const res = await rpc.post("com.atproto.repo.applyWrites", { 157 157 input: { 158 158 repo: agent()!.sub, 159 - collection: params.collection as `${string}.${string}.${string}`, 160 - rkey: params.rkey!, 161 - record: editedRecord, 162 159 validate: validate(), 160 + writes: [ 161 + { 162 + collection: params.collection as `${string}.${string}.${string}`, 163 + rkey: params.rkey!, 164 + $type: "com.atproto.repo.applyWrites#update", 165 + value: editedRecord, 166 + }, 167 + ], 163 168 }, 164 169 }); 165 170 if (!res.ok) {