Add proxy http adapter

This commit is contained in:
problematicconsumer
2024-02-11 16:45:22 +03:30
parent 6a81a2ab62
commit 7e1989d0bc
7 changed files with 142 additions and 95 deletions

View File

@@ -9,14 +9,14 @@ part 'config_option_notifier.g.dart';
@Riverpod(keepAlive: true)
class ConfigOptionNotifier extends _$ConfigOptionNotifier with AppLogger {
@override
Future<ConfigOptionEntity> build() {
Future<ConfigOptionEntity> build() async {
return ref
.watch(configOptionRepositoryProvider)
.getConfigOption()
.getOrElse((l) {
loggy.error("error getting persisted options $l", l);
throw l;
}).run();
});
}
Future<void> updateOption(ConfigOptionPatch patch) async {