Skip to content

Commit

Permalink
hardcode https
Browse files Browse the repository at this point in the history
  • Loading branch information
kakduman committed Mar 1, 2024
1 parent e1497b2 commit 76ce689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/resources/sparkprofile/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { routeLoader$ } from '@builder.io/qwik-city';
import analyzeProfile from '~/analyze/functions/analyzeProfile';
import { collector } from '~/analyze/functions/collector';

export const useResults = routeLoader$(async ({ params, env }) => {
export const useResults = routeLoader$(async ({ params }) => {
try {
await collector(params.id, env.get('API_URL'), 'spark');
await collector(params.id, 'https://api.profiler.birdflop.com', 'spark');
} catch (error) {
console.error('Collector error:', error);
}
Expand Down

0 comments on commit 76ce689

Please sign in to comment.