db/relays: reformat
This commit is contained in:
parent
3da30553cb
commit
2e983154bb
|
@ -13,7 +13,11 @@ function addRelays(relays: `wss://${string}`[]) {
|
|||
|
||||
/** Get a list of all known good relays. */
|
||||
async function getAllRelays(): Promise<string[]> {
|
||||
const rows = await db.selectFrom('relays').select('relays.url').execute();
|
||||
const rows = await db
|
||||
.selectFrom('relays')
|
||||
.select('relays.url')
|
||||
.execute();
|
||||
|
||||
return rows.map((row) => row.url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue