diff --git a/server/lib/blueprints/applyNewtDockerBlueprint.ts b/server/lib/blueprints/applyNewtDockerBlueprint.ts index 2afba84c..ab185caa 100644 --- a/server/lib/blueprints/applyNewtDockerBlueprint.ts +++ b/server/lib/blueprints/applyNewtDockerBlueprint.ts @@ -30,7 +30,12 @@ export async function applyNewtDockerBlueprint( logger.debug(`Received Docker blueprint: ${JSON.stringify(blueprint)}`); // Update the blueprint in the database - await applyBlueprint(site.orgId, blueprint, site.siteId); + await applyBlueprint({ + orgId: site.orgId, + configData: blueprint, + siteId: site.siteId, + source: "NEWT" + }); } catch (error) { logger.error(`Failed to update database from config: ${error}`); await sendToClient(newtId, { diff --git a/server/routers/newt/handleApplyBlueprintMessage.ts b/server/routers/newt/handleApplyBlueprintMessage.ts index 62802fff..908ff048 100644 --- a/server/routers/newt/handleApplyBlueprintMessage.ts +++ b/server/routers/newt/handleApplyBlueprintMessage.ts @@ -43,7 +43,12 @@ export const handleApplyBlueprintMessage: MessageHandler = async (context) => { try { const blueprintParsed = JSON.parse(blueprint); // Update the blueprint in the database - await applyBlueprint(site.orgId, blueprintParsed, site.siteId); + await applyBlueprint({ + orgId: site.orgId, + configData: blueprintParsed, + siteId: site.siteId, + source: "NEWT" + }); } catch (error) { logger.error(`Failed to update database from config: ${error}`); return {