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

View File

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