mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-30 04:37:06 +00:00
fix issue changing crew membership in admin panel
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user