This commit is contained in:
Adria Navarro 2024-05-03 13:04:44 +02:00
parent d259bdbf7b
commit b3ff417844
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export async function processOutputBBReference(
}
switch (subtype) {
case BBReferenceFieldSubType.USER:
case BBReferenceFieldSubType.USER: {
let user
try {
user = await cache.user.getUser(value as string)
@ -141,6 +141,7 @@ export async function processOutputBBReference(
firstName: user.firstName,
lastName: user.lastName,
}
}
default:
throw utils.unreachable(subtype)
}

View File

@ -1,6 +1,6 @@
import _ from "lodash"
import * as backendCore from "@budibase/backend-core"
import { BBReferenceFieldSubType, FieldType, User } from "@budibase/types"
import { BBReferenceFieldSubType, User } from "@budibase/types"
import {
processInputBBReference,
processInputBBReferences,