Skip to content

Commit 8ae0ef2

Browse files
Arta AsadiArta Asadi
Arta Asadi
authored and
Arta Asadi
committed
fix: update list plugins
1 parent 3496b02 commit 8ae0ef2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jobs/checkup-job/job.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ func (j *Job) SendTelemetry(ctx context.Context, logger *zap.Logger, workerConfi
138138

139139
pluginsResponse, err := integrationClient.ListPlugins(&httpCtx)
140140
if err != nil {
141-
logger.Error("failed to list sources", zap.Error(err))
142-
return fmt.Errorf("failed to list sources: %w", err)
141+
logger.Error("failed to list plugins", zap.Error(err))
142+
return fmt.Errorf("failed to list plugins: %w", err)
143143
}
144144
for _, p := range pluginsResponse.Items {
145145
plugins = append(plugins, shared_entities.UsageTrackerPluginInfo{

services/integration/client/integration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (c *integrationClient) GetIntegrationTypeResourceType(ctx *httpclient.Conte
296296
}
297297

298298
func (c *integrationClient) ListPlugins(ctx *httpclient.Context) (*models.IntegrationPluginListResponse, error) {
299-
url := fmt.Sprintf("%s/api/v1/integrations-types/plugin", c.baseURL)
299+
url := fmt.Sprintf("%s/api/v1/integration-types/plugin", c.baseURL)
300300
var response models.IntegrationPluginListResponse
301301

302302
if statusCode, err := httpclient.DoRequest(ctx.Ctx, http.MethodGet, url, ctx.ToHeaders(), nil, &response); err != nil {

0 commit comments

Comments
 (0)