Skip to content

Commit

Permalink
Merge branch 'main' into ds-parents-github
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet authored Sep 8, 2023
2 parents 8e8c090 + bbb3f97 commit 572bf8d
Show file tree
Hide file tree
Showing 232 changed files with 4,355 additions and 1,537 deletions.
4 changes: 4 additions & 0 deletions connectors/migrations/20230906_notion_fill_parents_field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { updateAllParentsFields } from "@connectors/connectors/notion/lib/parent
import { Connector, NotionDatabase, NotionPage } from "@connectors/lib/models";

async function main() {
if (!process.argv[2]) {
console.error("Missing workspace id or 'all' as first argument");
process.exit(1);
}
// if first arg is "all", update all connectors, else update only the
// connector for the corresponding workspace id
const connectors =
Expand Down
221 changes: 0 additions & 221 deletions connectors/src/api/google_drive.ts

This file was deleted.

13 changes: 0 additions & 13 deletions connectors/src/api_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import { createConnectorAPIHandler } from "@connectors/api/create_connector";
import { deleteConnectorAPIHandler } from "@connectors/api/delete_connector";
import { getConnectorAPIHandler } from "@connectors/api/get_connector";
import { getConnectorPermissionsAPIHandler } from "@connectors/api/get_connector_permissions";
import {
googleDriveGetFoldersAPIHandler,
googleDriveSetFoldersAPIHandler,
} from "@connectors/api/google_drive";
import { resumeConnectorAPIHandler } from "@connectors/api/resume_connector";
import { setConnectorPermissionsAPIHandler } from "@connectors/api/set_connector_permissions";
import { stopConnectorAPIHandler } from "@connectors/api/stop_connector";
Expand Down Expand Up @@ -73,15 +69,6 @@ export function startServer(port: number) {
webhookGithubAPIHandler
);

app.get(
"/connectors/:connector_id/google_drive/folders",
googleDriveGetFoldersAPIHandler
);
app.post(
"/connectors/:connector_id/google_drive/folders",
googleDriveSetFoldersAPIHandler
);

app.listen(port, () => {
logger.info(`Connectors API listening on port ${port}`);
});
Expand Down
Loading

0 comments on commit 572bf8d

Please sign in to comment.