QOL: Update file service
This commit is contained in:
parent
d76512c11f
commit
24cc7f64b5
15 changed files with 12 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue