Skip to content
2 changes: 1 addition & 1 deletion internal/apify/actors.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var Actors = []ActorConfig{
},
{
ActorId: ActorIds.WebScraper,
DefaultInput: defaultActorInput{},
DefaultInput: defaultActorInput{"startUrls": []map[string]any{{"url": "https://docs.learnbittensor.org"}}},
Capabilities: teetypes.WebCaps,
JobType: teetypes.WebJob,
},
Expand Down
2 changes: 1 addition & 1 deletion internal/capabilities/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DetectCapabilities(jc config.JobConfiguration, jobServer JobServerInterface
continue
}

if ok, _ := c.ProbeActorAccess(actor.ActorId, map[string]any(actor.DefaultInput)); ok {
if ok, _ := c.ProbeActorAccess(actor.ActorId, actor.DefaultInput); ok {
if _, exists := jobToSet[actor.JobType]; !exists {
jobToSet[actor.JobType] = util.NewSet[teetypes.Capability]()
}
Expand Down
3 changes: 2 additions & 1 deletion internal/capabilities/detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ var _ = Describe("DetectCapabilities", func() {
caps := DetectCapabilities(jc, nil)

// Web should be present
_, hasWeb := caps[teetypes.WebJob]
webCaps, hasWeb := caps[teetypes.WebJob]
Expect(hasWeb).To(BeTrue(), "expected web capabilities to be present")
Expect(webCaps).To(ContainElement(teetypes.CapScraper), "expected web to include CapScraper capability")
})
})
})
Expand Down
Loading