Fix incorrect layered profile key

This commit is contained in:
Patrick Pacher 2020-11-02 12:50:39 +01:00
parent 276a383d13
commit f5bde3a4ac
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ func getRevisions(key string) ([]record.Record, error) {
if profile == nil {
return nil, errProfileNotActive
}
profiles = append(profiles, profile)
}
records := make([]record.Record, 0, len(profiles))

View file

@ -125,7 +125,7 @@ func NewLayeredProfile(localProfile *Profile) *LayeredProfile {
new.updateCaches()
new.CreateMeta()
new.SetKey(runtime.DefaultRegistry.DatabaseName() + ":" + revisionProviderPrefix + localProfile.ID)
new.SetKey(runtime.DefaultRegistry.DatabaseName() + ":" + revisionProviderPrefix + localProfile.ScopedID())
// Inform database subscribers about the new layered profile.
new.Lock()