chore: test fix concurrency database

This commit is contained in:
Alex
2025-09-11 13:27:08 -05:00
parent 722a464e23
commit 2793086c03
6 changed files with 222 additions and 49 deletions
@@ -78,9 +78,13 @@ class DriftAuthUserRepository extends DriftDatabaseRepository {
if (user == null) return null;
final query = _db.userMetadataEntity.select()..where((e) => e.userId.equals(id));
print("getting metadata for user $id");
final metadata = await query.map((row) => row.toDto()).get();
return user.toDto(metadata);
final a = user.toDto(metadata);
print("get user $id metadata $a");
return a;
}
Future<UserDto> upsert(UserDto user) async {