feat(receipt-import): add refresh categories endpoint and UI integration
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -41,4 +41,12 @@ class ProfileRepository {
|
||||
);
|
||||
return UserProfile.fromJson(data);
|
||||
}
|
||||
|
||||
Future<void> refreshCategories() async {
|
||||
final token = await _ref.read(authStateProvider.future);
|
||||
await guardedApiCall(
|
||||
_ref,
|
||||
() => _apiClient.postJson(ReceiptImportApiPaths.refreshCategories, body: {}, token: token),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user