Value is always csv

This commit is contained in:
Adria Navarro 2023-09-19 13:17:07 +02:00
parent 89af863c34
commit 1314b991c7
1 changed files with 4 additions and 1 deletions

View File

@ -45,14 +45,17 @@ export async function processOutputBBReferences(
subtype: FieldSubtype
) {
if (typeof value !== "string") {
// Already processed or nothing to process
return value
}
const result = []
const validIds = value.split(",").filter(id => !!id)
switch (subtype) {
case FieldSubtype.USER:
for (const id of value.split(",").filter(x => !!x)) {
for (const id of validIds) {
try {
const user = await cache.user.getUser(id)
if (user) {