Skip to content

Commit 3e435c4

Browse files
committed
done
1 parent b22c711 commit 3e435c4

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

src/commandDetails/company/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const companyAddExecuteCommand: SapphireMessageExecuteType = async (
1717
if (!company_id) {
1818
throw new Error('please enter a valid crunchbase company id.');
1919
}
20+
console.log(args);
2021
const role = args['role'];
2122
if (!role) {
2223
throw new Error('please enter your role at this company.');
2324
}
24-
console.log(role);
2525
const company = await getCompanyInfo(<string>company_id);
2626
if (!company) {
2727
await insertCompany(<string>company_id);

src/commandDetails/company/find.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const companyFindExecuteCommand: SapphireMessageExecuteType = async (
6161
throw new Error('No one works at this company in the server!');
6262
}
6363
return {
64-
embeds: [await getCompanyFindEmbed(client, <string>company_id, companyInfo, companyUsers)],
64+
embeds: [await getCompanyFindEmbed(client, companyInfo, companyUsers)],
6565
};
6666
};
6767

src/commandDetails/company/profile.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const companyProfileExecuteCommand: SapphireMessageExecuteType = async (
1313
): Promise<SapphireMessageResponse> => {
1414
const user = getUserFromMessage(messageFromUser);
1515
const companies = await getCompaniesByUserId(user.id);
16-
console.log(companies);
1716
return `your companies are: ${JSON.stringify(companies)}`;
1817
};
1918

src/components/company.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const insertCompanyDetails = async (
2626
): Promise<void> => {
2727
const db = await openDB();
2828
const { name, image_id, description, company_id } = crunchbaseCompanyInfo;
29-
console.log(crunchbaseCompanyInfo);
3029
const insertCompanyCommand = `INSERT INTO companies (company_id, name, image_id, description) VALUES (?,?,?,?)`;
3130
await db.run(insertCompanyCommand, company_id, name, image_id, description);
3231
};

src/utils/companyInfo.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,11 @@ export const getCrunchbaseCompanyDetails = async (
3737
companyName = companyCrunchbaseLink;
3838
}
3939

40-
const full_url = `${CRUNCHBASE_ORGANIZATION_API_URL}${companyName}?user_key=${
41-
process.env.CRUNCHBASE_API_KEY
42-
}&field_ids=${fields.join(',')}`;
43-
4440
const response = await fetch(
4541
`${CRUNCHBASE_ORGANIZATION_API_URL}${companyName}?user_key=${
4642
process.env.CRUNCHBASE_API_KEY
4743
}&field_ids=${fields.join(',')}`,
4844
);
49-
console.log(full_url);
5045

5146
const data = await response.json();
5247
if (data.error) {

0 commit comments

Comments
 (0)