Skip to content

Commit

Permalink
Merge pull request #14 from mario-bermonti:make-getTrials-async
Browse files Browse the repository at this point in the history
improve: Make getTrials async
  • Loading branch information
mario-bermonti authored Jan 10, 2024
2 parents d012238 + 7166aa2 commit e4212ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DataBase extends _$DataBase {
return (select(trials)..where((trial) => trial.id.equals(id))).getSingle();
}

Future<List<Trial>> getTrials() => select(trials).get();
Future<List<Trial>> getTrials() async => await select(trials).get();

Future<Session> getSession(int id) {
return (select(sessions)..where((session) => session.id.equals(id)))
Expand Down

0 comments on commit e4212ca

Please sign in to comment.