Fix resource index not updated. Minor module improvements
This commit is contained in:
@@ -157,9 +157,13 @@ func DisableUpdateSchedule() error {
|
||||
}
|
||||
|
||||
func checkForUpdates(ctx context.Context) error {
|
||||
if err := registry.UpdateIndexes(); err != nil {
|
||||
return fmt.Errorf("updates: failed to update indexes: %w", err)
|
||||
}
|
||||
|
||||
err := registry.DownloadUpdates(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("updates: failed to update: %s", err)
|
||||
return fmt.Errorf("updates: failed to update: %w", err)
|
||||
}
|
||||
module.TriggerEvent(ResourceUpdateEvent, nil)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user