user service update

This commit is contained in:
2025-11-14 11:23:31 +02:00
parent 5770f6c353
commit 66db154b02
2 changed files with 7 additions and 9 deletions

View File

@@ -119,7 +119,7 @@ class MihUserServices {
}
Future<AppUser?> getMyUserDetails(
BuildContext context,
MzansiProfileProvider profileProvider,
) async {
String app_id = await SuperTokens.getUserId();
var response = await http.get(
@@ -131,9 +131,9 @@ class MihUserServices {
if (response.statusCode == 200) {
String body = response.body;
var jsonBody = jsonDecode(body);
context.read<MzansiProfileProvider>().setUser(
newUser: AppUser.fromJson(jsonBody),
);
profileProvider.setUser(
newUser: AppUser.fromJson(jsonBody),
);
return AppUser.fromJson(jsonBody);
} else {
return null;