fix writes

This commit is contained in:
Hailey
2024-06-06 19:06:28 -07:00
parent f680d04a4c
commit 2ea6501e6f
+2
View File
@@ -148,6 +148,7 @@ export function Provider({
await agent.com.atproto.repo.applyWrites({ await agent.com.atproto.repo.applyWrites({
repo: currentAccount!.did, repo: currentAccount!.did,
writes: state.profiles.map(p => ({ writes: state.profiles.map(p => ({
$type: 'com.atproto.repo.applyWrites#create',
collection: 'app.bsky.graph.listitem', collection: 'app.bsky.graph.listitem',
value: { value: {
$type: 'app.bsky.graph.listitem', $type: 'app.bsky.graph.listitem',
@@ -161,6 +162,7 @@ export function Provider({
await agent.app.bsky.graph.starterpack.create( await agent.app.bsky.graph.starterpack.create(
{ {
repo: currentAccount!.did, repo: currentAccount!.did,
validate: false,
}, },
{ {
name: state.name ?? '', name: state.name ?? '',