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) }