forked from eatvio/eatvio_app
chore(version): update app version to 1.3.6+86 and filter active plans in PlansRepository
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user