Fix
This commit is contained in:
@@ -35,7 +35,7 @@ function getAppIconUrl(appUrl) {
|
|||||||
if (!appUrl) return null;
|
if (!appUrl) return null;
|
||||||
try {
|
try {
|
||||||
const icon = db.prepare(
|
const icon = db.prepare(
|
||||||
`SELECT filename FROM app_icons ORDER BY updated_at DESC LIMIT 1`
|
`SELECT filename FROM app_icons WHERE name = 'logo-app' LIMIT 1`
|
||||||
).get();
|
).get();
|
||||||
return icon ? `${appUrl.replace(/\/$/, '')}/api/icons-files/${icon.filename}` : null;
|
return icon ? `${appUrl.replace(/\/$/, '')}/api/icons-files/${icon.filename}` : null;
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user