db/relays: reformat

This commit is contained in:
Alex Gleason 2023-08-14 20:41:20 -05:00
parent 3da30553cb
commit 2e983154bb
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}