Skip to content

Commit

Permalink
Remove unused imports and variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Grayson committed Dec 15, 2023
1 parent 8c5316c commit 33f9669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/tasks/censys.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import { Domain, Organization } from '../models';
import { Domain } from '../models';
import { plainToClass } from 'class-transformer';
import * as dns from 'dns';
import saveDomainsToDb from './helpers/saveDomainsToDb';
Expand All @@ -18,15 +18,15 @@ interface CensysAPIResponse {
};
}

const sleep = (milliseconds) => {
const sleep = (milliseconds: number) => {
return new Promise((resolve) => setTimeout(resolve, milliseconds));
};

const fetchCensysData = async (rootDomain: string, page: number) => {
console.log(
`[censys] fetching certificates for query "${rootDomain}", page ${page}`
);
const { data, status } = await axios({
const { data } = await axios({
url: 'https://search.censys.io/api/v2/certificates/search',
method: 'POST',
auth: {
Expand Down

0 comments on commit 33f9669

Please sign in to comment.