From 17d421f12b34ead9f10ff7d9c3eb30fe82268848 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 6 Dec 2024 16:14:46 +0000 Subject: [PATCH] Fixes for types based on CI. --- packages/worker/src/api/controllers/global/self.ts | 1 - packages/worker/src/api/controllers/global/templates.ts | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/worker/src/api/controllers/global/self.ts b/packages/worker/src/api/controllers/global/self.ts index 7f2a139106..f8488f526b 100644 --- a/packages/worker/src/api/controllers/global/self.ts +++ b/packages/worker/src/api/controllers/global/self.ts @@ -10,7 +10,6 @@ import { import env from "../../../environment" import { groups } from "@budibase/pro" import { - Ctx, DevInfo, FetchAPIKeyResponse, GenerateAPIKeyRequest, diff --git a/packages/worker/src/api/controllers/global/templates.ts b/packages/worker/src/api/controllers/global/templates.ts index e175773723..d717f47515 100644 --- a/packages/worker/src/api/controllers/global/templates.ts +++ b/packages/worker/src/api/controllers/global/templates.ts @@ -14,8 +14,8 @@ import { FindGlobalTemplateResponse, SaveGlobalTemplateRequest, SaveGlobalTemplateResponse, - TemplateBinding, - TemplateDefinition, + GlobalTemplateBinding, + GlobalTemplateDefinition, UserCtx, } from "@budibase/types" @@ -41,8 +41,8 @@ export async function save( export async function definitions( ctx: UserCtx ) { - const bindings: Record = {} - const info: Record = {} + const bindings: Record = {} + const info: Record = {} for (let template of TemplateMetadata.email) { bindings[template.purpose] = template.bindings info[template.purpose] = {