refactor service name
This commit is contained in:
@@ -16,7 +16,7 @@ class BangSyncRepository extends _$BangSyncRepository {
|
||||
BangSyncRepository();
|
||||
|
||||
static Future<Result<void>> _fetchAndSync({
|
||||
required BangSource sourceRepository,
|
||||
required BangSourceService sourceService,
|
||||
required BangDatabase db,
|
||||
required Uri url,
|
||||
required BangGroup group,
|
||||
@@ -32,7 +32,7 @@ class BangSyncRepository extends _$BangSyncRepository {
|
||||
}
|
||||
}
|
||||
|
||||
final result = await sourceRepository.getBangs(url, group);
|
||||
final result = await sourceService.getBangs(url, group);
|
||||
return result.flatMapAsync(
|
||||
(remoteBangs) async {
|
||||
await db.syncDao.syncBangs(
|
||||
@@ -57,7 +57,7 @@ class BangSyncRepository extends _$BangSyncRepository {
|
||||
computation: (db) async {
|
||||
final ref = ProviderContainer();
|
||||
final result = await _fetchAndSync(
|
||||
sourceRepository: ref.read(bangSourceProvider.notifier),
|
||||
sourceService: ref.read(bangSourceServiceProvider.notifier),
|
||||
db: db,
|
||||
url: url,
|
||||
group: group,
|
||||
|
||||
@@ -7,7 +7,7 @@ part of 'sync.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$bangSyncRepositoryHash() =>
|
||||
r'79b9c561638e96eb404ceeecb4b50dec31f0c610';
|
||||
r'865164c809e2f171a6b748d149780383d6e3483f';
|
||||
|
||||
/// See also [BangSyncRepository].
|
||||
@ProviderFor(BangSyncRepository)
|
||||
|
||||
Reference in New Issue
Block a user