Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-maulana-tkp committed Feb 18, 2020
1 parent fc009e1 commit 95cc25e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Audit web perf

on:
schedule:
- cron: "0 14 * * 2"
- cron: "0 14 * * 3"

jobs:
run_audit:
Expand Down
2 changes: 1 addition & 1 deletion src/server/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const run = async (name: string, url: string, device: string): Promise<any | nul
});

for(let i = 0; i < NUMBER_OF_RUN; i++) {
const response = await runLH(name, url, device, i+1);
const response = await runLH(name, url, device);
if (response) {
results.push(response);
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion src/server/lh.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetch from 'node-fetch';
import { LHResponse } from './types';

export default async (name: string, url: string, device: string, index: number): Promise<LHResponse | null> => {
export default async (name: string, url: string, device: string): Promise<LHResponse | null> => {
const URL = `https://builder-dot-lighthouse-ci.appspot.com/ci`;

try {
Expand Down
2 changes: 1 addition & 1 deletion src/server/test-lh.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import runLH from './lh';

(() => {
runLH('Tokopedia', 'https://www.tokopedia.com/', 'mobile', 0);
runLH('Tokopedia', 'https://www.tokopedia.com/', 'mobile');
})();

0 comments on commit 95cc25e

Please sign in to comment.