fix : change product list in root

This commit is contained in:
2025-07-14 12:35:12 +03:30
parent ac75fc38c2
commit f79a3ae46f
8 changed files with 47 additions and 44 deletions

View File

@@ -9,7 +9,6 @@ import 'package:rasadyar_core/core.dart';
class SaleLogic extends GetxController {
Rxn<List<AllocatedMadeModel>?> allocatedMadeModel = Rxn<List<AllocatedMadeModel>?>();
RxList<ProductModel> rolesProductsModel = RxList<ProductModel>();
RxList<GuildModel> guildsModel = <GuildModel>[].obs;
@@ -24,7 +23,7 @@ class SaleLogic extends GetxController {
void onReady() {
super.onReady();
getStewardDashBord();
getRolesProducts();
}
Future<void> getAllocatedMade() async {
@@ -83,19 +82,6 @@ class SaleLogic extends GetxController {
);
}
Future<void> getRolesProducts() async {
safeCall(
call: () async => await rootLogic.chickenRepository.getRolesProducts(
token: rootLogic.tokenService.accessToken.value!,
),
onSuccess: (result) {
if (result != null) {
rolesProductsModel.value = result;
}
},
onError: (error, stacktrace) {},
);
}
Future<void> getGuilds() async {}