Update main.js

This commit is contained in:
git 2025-06-16 15:29:32 +01:00
parent 873df2e87e
commit 375e2e0884

View File

@ -210,7 +210,7 @@ function replyLocallyWithRemoteDevicesData(name,type,query) {
async function fetchRemoteDevicesData() { async function fetchRemoteDevicesData() {
try { try {
const [rows] = await dbPool.execute( const [rows] = await dbPool.execute(
`SELECT Type, Name, Data FROM ${DB_TABLE} WHERE Host <> ?`, `SELECT Type, Name, Data FROM ${DB_TABLE} WHERE Host <> ? AND MakeAvailableEverywhere = 1`,
[DB_USER] [DB_USER]
); );