mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Fix incorrect layered profile key
This commit is contained in:
parent
276a383d13
commit
f5bde3a4ac
2 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue