improve relay connection

This commit is contained in:
2023-11-16 07:59:29 +07:00
parent 875225591a
commit b41ec353c6
5 changed files with 27 additions and 6 deletions

View File

@@ -406,7 +406,7 @@ export class LumeStorage {
`SELECT * FROM relays WHERE account_id = "${this.account.id}" ORDER BY id DESC LIMIT 50;`
);
if (!result || result.length < 1) return FULL_RELAYS;
if (!result || !result.length) return FULL_RELAYS;
return result.map((el) => el.relay);
}