experimenting

This commit is contained in:
Tony Grosinger 2024-02-21 18:08:35 -08:00
parent 9f880ad1c0
commit 1c21773729

View File

@ -87,7 +87,7 @@ export default {
data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") }, data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") },
}); });
thisBatch.forEach((uc) => { thisBatch.forEach((uc) => {
// console.log(uc); console.log(uc);
// Each user card expects its own promise // Each user card expects its own promise
// Rather than making a separate AJAX request for each // Rather than making a separate AJAX request for each
@ -99,12 +99,9 @@ export default {
user: data.users.find((u) => u.id === uc.user.id), user: data.users.find((u) => u.id === uc.user.id),
}); });
}); });
let x = uc.user return uc.user
.findDetails({ existingRequest: convertedPromise }) .findDetails({ existingRequest: convertedPromise })
.finally(() => uc.set("loading", false)); .finally(() => uc.set("loading", false));
console.log(x._result.user_fields);
return x;
}); });
} }