chore(version): update app version to 1.3.6+86 and filter active plans in PlansRepository

This commit is contained in:
mso7nueh
2025-12-08 12:10:19 +03:00
parent 746d366c18
commit edd064d20d
4 changed files with 7 additions and 6 deletions

View File

@@ -8,7 +8,8 @@ class PlansRepository {
Future<List<PlanModel>> getPlansBySlug(String slug) async {
try {
return (await plansService.getPlansBySlug(author: slug)).data;
final plans = (await plansService.getPlansBySlug(author: slug)).data;
return plans.where((plan) => plan.state == 'active').toList();
} catch (e) {
rethrow;
}