Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor committed Dec 16, 2024
1 parent b6079a6 commit d95d3ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class OfflineFirstException implements Exception {
/// is not important to the requested behavior.
OfflineFirstException(this.originalError);

///
String get message => originalError.toString();

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ Future<SupabaseOfflineFirstWhere> _$SupabaseOfflineFirstWhereFromSupabase(
{required SupabaseProvider provider,
OfflineFirstRepository? repository}) async {
return SupabaseOfflineFirstWhere(
association: await repository!
.getAssociation<Assoc>(Query(
where: [Where.exact('id', data["association"]["id"])],
providerArgs: {'limit': 1}))
.then((r) => r!.first),
association:
await repository!.getAssociation<Assoc>(Query(where: [Where.exact('id', data["association"]["id"])], limit: 1)).then(
(r) => r!.first),
associations: await Future.wait<Assoc>(data['associations']
?.map((d) => AssocAdapter()
.fromSupabase(d, provider: provider, repository: repository))
.toList()
.cast<Future<Assoc>>() ??
[]),
nullableAssociations: await Future.wait<Assoc>(
data['nullable_associations']?.map((d) => AssocAdapter().fromSupabase(d, provider: provider, repository: repository)).toList().cast<Future<Assoc>>() ?? []));
nullableAssociations: await Future.wait<Assoc>(data['nullable_associations']
?.map((d) => AssocAdapter().fromSupabase(d, provider: provider, repository: repository))
.toList()
.cast<Future<Assoc>>() ??
[]));
}
Future<Map<String, dynamic>> _$SupabaseOfflineFirstWhereToSupabase(
Expand Down

0 comments on commit d95d3ea

Please sign in to comment.