NEW: MIH Home & Mzansi Profile Provider Setup pt 1

This commit is contained in:
2025-10-16 10:16:18 +02:00
parent 553d22dd6b
commit d51603ff5d
28 changed files with 2687 additions and 2515 deletions

View File

@@ -61,7 +61,7 @@ class MIHApiCalls {
// Get Userdata
var uid = await SuperTokens.getUserId();
AppUser? user = await MihUserServices().getUserDetails(uid, context);
AppUser? user = await MihUserServices().getUserDetails(context);
if (user != null) {
userData = user;
} else {
@@ -70,7 +70,7 @@ class MIHApiCalls {
// Get BusinessUserdata
BusinessUser? businessUser =
await MihMyBusinessUserServices().getBusinessUser(uid);
await MihMyBusinessUserServices().getBusinessUser(context);
if (businessUser != null) {
bUserData = businessUser;
} else {
@@ -79,9 +79,7 @@ class MIHApiCalls {
// Get Businessdata
Business? business =
await MihBusinessDetailsServices().getBusinessDetailsByUser(
uid,
);
await MihBusinessDetailsServices().getBusinessDetailsByUser(context);
if (business != null) {
busData = business;
} else {