sync data

This commit is contained in:
efrilm
2025-09-20 05:02:01 +07:00
parent 72a464b4c0
commit a58d1040af
4 changed files with 678 additions and 1 deletions
@@ -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;
}
}
}