Fix: Add missing await before buildUserDownloads in SSE endpoint to resolve icon display issues
Build and Push Docker Image / build (push) Successful in 31s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m19s
CI / Security audit (push) Successful in 1m34s
CI / Swagger Validation & Coverage (push) Successful in 1m40s
CI / Tests & coverage (push) Successful in 1m51s
Build and Push Docker Image / build (push) Successful in 31s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m19s
CI / Security audit (push) Successful in 1m34s
CI / Swagger Validation & Coverage (push) Successful in 1m40s
CI / Tests & coverage (push) Successful in 1m51s
This commit is contained in:
@@ -469,7 +469,7 @@ router.get('/stream', requireAuth, async (req, res) => {
|
|||||||
const ombiRetriever = ombiInstances.length > 0 ? arrRetrieverRegistry.getOmbiRetrievers()[0] : null;
|
const ombiRetriever = ombiInstances.length > 0 ? arrRetrieverRegistry.getOmbiRetrievers()[0] : null;
|
||||||
const ombiBaseUrl = ombiInstances.length > 0 ? ombiInstances[0].url : null;
|
const ombiBaseUrl = ombiInstances.length > 0 ? ombiInstances[0].url : null;
|
||||||
|
|
||||||
const userDownloads = buildUserDownloads(snapshot, {
|
const userDownloads = await buildUserDownloads(snapshot, {
|
||||||
username,
|
username,
|
||||||
usernameSanitized: user.name,
|
usernameSanitized: user.name,
|
||||||
isAdmin,
|
isAdmin,
|
||||||
@@ -483,7 +483,8 @@ router.get('/stream', requireAuth, async (req, res) => {
|
|||||||
ombiBaseUrl
|
ombiBaseUrl
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`[SSE] Sending ${userDownloads.length} downloads for ${user.name}`);
|
console.log(`[SSE] userDownloads type: ${typeof userDownloads}, isArray: ${Array.isArray(userDownloads)}, value:`, userDownloads);
|
||||||
|
console.log(`[SSE] Sending ${userDownloads?.length || 0} downloads for ${user.name}`);
|
||||||
const downloadClients = downloadClientRegistry.getAllClients().map(c => ({
|
const downloadClients = downloadClientRegistry.getAllClients().map(c => ({
|
||||||
id: c.getInstanceId(),
|
id: c.getInstanceId(),
|
||||||
name: c.name,
|
name: c.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user