Skip to content

Commit

Permalink
Add Bitte Urls to Register (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Nov 19, 2024
1 parent 0c75cb7 commit 3975c2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { validateAndParseOpenApiSpec } from "../services/openapi-service";
import { registerPlugin } from "../services/plugin-service";
import { deployedUrl } from "../utils/deployed-url";
import { getHostname, getSpecUrl } from "../utils/url-utils";
import { getBitteUrls } from "../config/constants";

export const registerCommand = new Command()
.name('register')
Expand Down Expand Up @@ -30,7 +31,7 @@ export const registerCommand = new Command()
return;
}

const result = await registerPlugin({ pluginId, accountId });
const result = await registerPlugin({ pluginId, accountId, bitteUrls: getBitteUrls() });
if (result) {
console.log(`Plugin ${pluginId} registered successfully.`);
} else {
Expand Down

0 comments on commit 3975c2e

Please sign in to comment.