mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-19 08:44:14 +00:00
delete manifests correct when deleted from the PDS fixes https://tangled.org/did:plc:e3kzdezk5gsirzh7eoqplc64/issues/18
This commit is contained in:
@@ -264,7 +264,9 @@ func (p *Processor) ProcessRecord(ctx context.Context, did, collection, rkey str
|
||||
switch collection {
|
||||
case atproto.ManifestCollection:
|
||||
if isDelete {
|
||||
return db.DeleteManifest(p.db, did, "", rkey)
|
||||
// Manifest rkey is the digest with "sha256:" stripped; the digest
|
||||
// column stores the full form, so reconstruct it for the WHERE clause.
|
||||
return db.DeleteManifest(p.db, did, "", "sha256:"+rkey)
|
||||
}
|
||||
_, err := p.ProcessManifest(ctx, did, data)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user