diff --git a/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts b/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts index ad6291dbc7..325b3b37ba 100644 --- a/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts +++ b/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts @@ -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) } diff --git a/packages/server/src/utilities/rowProcessor/tests/bbReferenceProcessor.spec.ts b/packages/server/src/utilities/rowProcessor/tests/bbReferenceProcessor.spec.ts index 2825c9755d..c5a7b7fc84 100644 --- a/packages/server/src/utilities/rowProcessor/tests/bbReferenceProcessor.spec.ts +++ b/packages/server/src/utilities/rowProcessor/tests/bbReferenceProcessor.spec.ts @@ -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,