Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions lib/core/storage/local_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,8 @@ class LocalDb {
Future<List<ConnectionRow>> getConnections() async {
final db = await _open();
final rows = await db.query('connections', orderBy: 'sort_order ASC, name ASC');
final out = <ConnectionRow>[];
for (final m in rows) {
out.add(await _hydrateConnection(ConnectionRow.fromMap(m)));
}
return out;
final futures = rows.map((m) => _hydrateConnection(ConnectionRow.fromMap(m)));
return Future.wait(futures);
}

static Future<ConnectionRow> _hydrateConnection(ConnectionRow row) async {
Expand Down
Loading