[WIP] working download and replace.
This commit is contained in:
@@ -93,5 +93,5 @@ func New(instance instance) (*Broadcasts, error) {
|
||||
}
|
||||
|
||||
type instance interface {
|
||||
Updates() *updates.Updates
|
||||
IntelUpdates() *updates.Updates
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ type BroadcastNotification struct {
|
||||
|
||||
func broadcastNotify(ctx *mgr.WorkerCtx) error {
|
||||
// Get broadcast notifications file, load it from disk and parse it.
|
||||
broadcastsResource, err := module.instance.Updates().GetFile(broadcastsResourcePath)
|
||||
broadcastsResource, err := module.instance.IntelUpdates().GetFile(broadcastsResourcePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get broadcast notifications update: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user