Fix deletions

This commit is contained in:
Adria Navarro 2023-09-27 16:20:47 +02:00
parent 1fb3c4b3c3
commit 9afa334501
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { InvalidBBRefError } from "./errors"
export async function processInputBBReferences(
value: string | string[] | { _id: string } | { _id: string }[],
subtype: FieldSubtype
): Promise<string | undefined> {
): Promise<string | null> {
const referenceIds: string[] = []
if (Array.isArray(value)) {
@ -39,7 +39,7 @@ export async function processInputBBReferences(
throw utils.unreachable(subtype)
}
return referenceIds.join(",") || undefined
return referenceIds.join(",") || null
}
export async function processOutputBBReferences(