QOL: Update file service
This commit is contained in:
@@ -276,7 +276,7 @@ class MihBusinessDetailsServices {
|
||||
businessMissionVision,
|
||||
),
|
||||
);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath);
|
||||
provider.setBusinessProfilePicUrl(newProPicUrl);
|
||||
return 200;
|
||||
} else {
|
||||
|
||||
@@ -17,7 +17,6 @@ class MihFileApi {
|
||||
|
||||
static Future<String> getMinioFileUrl(
|
||||
String filePath,
|
||||
BuildContext context,
|
||||
) async {
|
||||
// loadingPopUp(context);
|
||||
// print("here");
|
||||
|
||||
@@ -122,7 +122,7 @@ class MihMyBusinessUserServices {
|
||||
bUserAccess,
|
||||
),
|
||||
);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath);
|
||||
provider.setBusinessUserSignatureUrl(newProPicUrl);
|
||||
return 200;
|
||||
} else {
|
||||
|
||||
@@ -189,7 +189,7 @@ class MihUserServices {
|
||||
purpose,
|
||||
),
|
||||
);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context);
|
||||
String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath);
|
||||
context.read<MzansiProfileProvider>().setUserProfilePicUrl(newProPicUrl);
|
||||
return response.statusCode;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user