From 3975c2e37c66e5d8f0b5d8ed08b36c6355cd7edb Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Tue, 19 Nov 2024 08:49:28 +0100 Subject: [PATCH] Add Bitte Urls to Register (#21) --- src/commands/register.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/register.ts b/src/commands/register.ts index f7edb99..0fafb05 100644 --- a/src/commands/register.ts +++ b/src/commands/register.ts @@ -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') @@ -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 {