Fixes for types based on CI.

This commit is contained in:
mike12345567 2024-12-06 16:14:46 +00:00
parent a3df34b350
commit 17d421f12b
2 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,6 @@ import {
import env from "../../../environment"
import { groups } from "@budibase/pro"
import {
Ctx,
DevInfo,
FetchAPIKeyResponse,
GenerateAPIKeyRequest,

View File

@ -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<void, FetchGlobalTemplateDefinitionResponse>
) {
const bindings: Record<string, TemplateBinding[]> = {}
const info: Record<string, TemplateDefinition> = {}
const bindings: Record<string, GlobalTemplateBinding[]> = {}
const info: Record<string, GlobalTemplateDefinition> = {}
for (let template of TemplateMetadata.email) {
bindings[template.purpose] = template.bindings
info[template.purpose] = {