mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
db/relays: reformat
This commit is contained in:
parent
3da30553cb
commit
2e983154bb
1 changed files with 5 additions and 1 deletions
|
|
@ -13,7 +13,11 @@ function addRelays(relays: `wss://${string}`[]) {
|
||||||
|
|
||||||
/** Get a list of all known good relays. */
|
/** Get a list of all known good relays. */
|
||||||
async function getAllRelays(): Promise<string[]> {
|
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);
|
return rows.map((row) => row.url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue