Fixes for types based on CI.
This commit is contained in:
parent
a3df34b350
commit
17d421f12b
|
@ -10,7 +10,6 @@ import {
|
||||||
import env from "../../../environment"
|
import env from "../../../environment"
|
||||||
import { groups } from "@budibase/pro"
|
import { groups } from "@budibase/pro"
|
||||||
import {
|
import {
|
||||||
Ctx,
|
|
||||||
DevInfo,
|
DevInfo,
|
||||||
FetchAPIKeyResponse,
|
FetchAPIKeyResponse,
|
||||||
GenerateAPIKeyRequest,
|
GenerateAPIKeyRequest,
|
||||||
|
|
|
@ -14,8 +14,8 @@ import {
|
||||||
FindGlobalTemplateResponse,
|
FindGlobalTemplateResponse,
|
||||||
SaveGlobalTemplateRequest,
|
SaveGlobalTemplateRequest,
|
||||||
SaveGlobalTemplateResponse,
|
SaveGlobalTemplateResponse,
|
||||||
TemplateBinding,
|
GlobalTemplateBinding,
|
||||||
TemplateDefinition,
|
GlobalTemplateDefinition,
|
||||||
UserCtx,
|
UserCtx,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ export async function save(
|
||||||
export async function definitions(
|
export async function definitions(
|
||||||
ctx: UserCtx<void, FetchGlobalTemplateDefinitionResponse>
|
ctx: UserCtx<void, FetchGlobalTemplateDefinitionResponse>
|
||||||
) {
|
) {
|
||||||
const bindings: Record<string, TemplateBinding[]> = {}
|
const bindings: Record<string, GlobalTemplateBinding[]> = {}
|
||||||
const info: Record<string, TemplateDefinition> = {}
|
const info: Record<string, GlobalTemplateDefinition> = {}
|
||||||
for (let template of TemplateMetadata.email) {
|
for (let template of TemplateMetadata.email) {
|
||||||
bindings[template.purpose] = template.bindings
|
bindings[template.purpose] = template.bindings
|
||||||
info[template.purpose] = {
|
info[template.purpose] = {
|
||||||
|
|
Loading…
Reference in New Issue