Purge old resources after updating

This commit is contained in:
Daniel
2020-12-17 17:06:48 +01:00
parent 18cc0f2bf6
commit 025a8e14ab

View File

@@ -307,6 +307,9 @@ func checkForUpdates(ctx context.Context) (err error) {
return
}
// Purge old resources
registry.Purge(3)
module.TriggerEvent(ResourceUpdateEvent, nil)
return nil
}