sync data
This commit is contained in:
@@ -282,4 +282,16 @@ class CategoryRepository {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> clearAllCategories() async {
|
||||
try {
|
||||
log('🗑️ Clearing all categories from repository...');
|
||||
await _localDatasource.clearAllCategories();
|
||||
clearCache();
|
||||
log('✅ All categories cleared successfully');
|
||||
} catch (e) {
|
||||
log('❌ Error clearing all categories: $e');
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user