Value is always csv
This commit is contained in:
parent
89af863c34
commit
1314b991c7
|
@ -45,14 +45,17 @@ export async function processOutputBBReferences(
|
||||||
subtype: FieldSubtype
|
subtype: FieldSubtype
|
||||||
) {
|
) {
|
||||||
if (typeof value !== "string") {
|
if (typeof value !== "string") {
|
||||||
|
// Already processed or nothing to process
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = []
|
const result = []
|
||||||
|
|
||||||
|
const validIds = value.split(",").filter(id => !!id)
|
||||||
|
|
||||||
switch (subtype) {
|
switch (subtype) {
|
||||||
case FieldSubtype.USER:
|
case FieldSubtype.USER:
|
||||||
for (const id of value.split(",").filter(x => !!x)) {
|
for (const id of validIds) {
|
||||||
try {
|
try {
|
||||||
const user = await cache.user.getUser(id)
|
const user = await cache.user.getUser(id)
|
||||||
if (user) {
|
if (user) {
|
||||||
|
|
Loading…
Reference in New Issue