fix issue changing crew membership in admin panel

This commit is contained in:
Evan Jarrett
2026-03-08 21:13:05 -05:00
parent 11a8be1413
commit 347e7ac80b
+2 -2
View File
@@ -183,7 +183,7 @@ func (p *HoldPDS) UpdateCrewMemberTier(ctx context.Context, memberDID, tier stri
return nil
}
// Create updated record (PutRecord handles upsert with same rkey)
// Create updated record (UpdateRecord handles in-place update with same rkey)
newRecord := &atproto.CrewRecord{
Type: atproto.CrewCollection,
Member: existing.Member,
@@ -195,7 +195,7 @@ func (p *HoldPDS) UpdateCrewMemberTier(ctx context.Context, memberDID, tier stri
}
rkey := atproto.CrewRecordKey(memberDID)
_, _, err = p.repomgr.PutRecord(ctx, p.uid, atproto.CrewCollection, rkey, newRecord)
_, err = p.repomgr.UpdateRecord(ctx, p.uid, atproto.CrewCollection, rkey, newRecord)
if err != nil {
return fmt.Errorf("failed to update crew record: %w", err)
}