fix unlink local and select local

This commit is contained in:
J. A. Messias 2024-09-27 14:23:52 -03:00
parent ed4934ffdb
commit cb60004b0e
2 changed files with 4 additions and 3 deletions

View File

@ -490,12 +490,12 @@ class ChangePass {
class RespondeVinculo {
Future<ApiCallResponse> call({
String? tarefa = '',
String? cliID = '',
}) async {
final baseUrl = PhpGroup.getBaseUrl();
final devUUID = StorageUtil().devUUID;
final userUUID = StorageUtil().userUUID;
final cliID = StorageUtil().cliUUID;
return ApiManager.instance.makeApiCall(
callName: 'respondeVinculo',

View File

@ -110,8 +110,8 @@ class _BottomArrowLinkedLocalsComponentWidgetState
Future<dynamic> _fetchResponseLink(String status, String cliID) async {
try {
var response =
await PhpGroup.resopndeVinculo.call(tarefa: status, cliID: cliID);
StorageUtil().cliUUID = cliID;
var response = await PhpGroup.resopndeVinculo.call(tarefa: status);
if (response.jsonBody['error'] == false) {
return {
@ -121,6 +121,7 @@ class _BottomArrowLinkedLocalsComponentWidgetState
enText: "Link Activated Successfully")
};
} else {
StorageUtil().cliUUID = '';
return response.jsonBody;
}
} catch (e, s) {