Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #99 from OcularEngineering/webConnectorNew_UI
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
Vivek-Lahole authored May 22, 2024
2 parents ecc9de0 + 0b072e8 commit 3b5ee4e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/apps/webconnector/src/services/webConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default class webConnectorService extends TransactionBaseService {

try {
const pageArray = await this.crawl(base_url);
console.log(pageArray);
let documents: IndexableDocument[] = [];
for (const page of pageArray) {
if (page.text) {
Expand Down
1 change: 0 additions & 1 deletion packages/ocular-ui/components/marketplace/webConnector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const formSchema = z.object({
});

export default function WebConnector({ links }: { links: Link[] }) {
console.log('LINKS', links);
const [sorting, setSorting] = React.useState<SortingState>([]);
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
[]
Expand Down
1 change: 1 addition & 0 deletions packages/ocular-ui/pages/dashboard/marketplace/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { IconChevronLeft, IconExternalLink } from '@supabase/ui';
import WebConnector from '@/components/marketplace/webConnector';
import { formatLabel } from '@/lib/utils';


interface Link {
location: string;
status: 'processing' | 'success' | 'failed';
Expand Down
4 changes: 1 addition & 3 deletions packages/ocular/src/api/routes/admin/apps/updateApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default async (req, res) => {
);

let data = {};
console.log("ORG_ID", loggedInUser);
switch (validated.name) {
case AppNameDefinitions.WEBCONNECTOR:
data = {
Expand All @@ -37,13 +36,12 @@ export default async (req, res) => {
};
break;
}
console.log("API REQUEST DATA", data);
const installed_apps = await organisationService.updateInstalledApp(
validated.name,
data
);

if (true) {
if (installed_apps) {
res.status(200).json({ message: "Link saved successfully!" });
} else {
res.status(500).json({ error: "Internal Server Error" });
Expand Down
1 change: 0 additions & 1 deletion packages/ocular/src/services/organisation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ class OrganisationService extends TransactionBaseService {
org_id: data.org_id,
});
}

return installed_apps[webConnector_index].links;

default:
Expand Down

0 comments on commit 3b5ee4e

Please sign in to comment.