1
0
Fork 0
mirror of synced 2024-09-06 12:41:24 +12:00

Fix deletion

This commit is contained in:
Adria Navarro 2023-09-15 19:06:06 +02:00
parent 7f6ef551c9
commit ead2a2795e
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ export async function processOutputBBReferences(
switch (subtype) { switch (subtype) {
case FieldSubtype.USER: case FieldSubtype.USER:
for (const id of value.split(",")) { for (const id of value.split(",").filter(x => !!x)) {
try { try {
const user = await cache.user.getUser(id) const user = await cache.user.getUser(id)
if (user) { if (user) {

View file

@ -229,7 +229,7 @@ export async function outputProcessing<T extends Row[] | Row>(
} }
} else if (column.type == FieldTypes.BB_REFERENCE) { } else if (column.type == FieldTypes.BB_REFERENCE) {
for (let row of enriched) { for (let row of enriched) {
if (!row[property]) { if (!row[property] == null) {
continue continue
} }
row[property] = await processOutputBBReferences( row[property] = await processOutputBBReferences(