From 347e7ac80ba0caf7d6c3fe68ea720f060d3eba71 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Sun, 8 Mar 2026 21:13:05 -0500 Subject: [PATCH] fix issue changing crew membership in admin panel --- pkg/hold/pds/crew.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/hold/pds/crew.go b/pkg/hold/pds/crew.go index 69a9888..caa17ce 100644 --- a/pkg/hold/pds/crew.go +++ b/pkg/hold/pds/crew.go @@ -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) }