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 { class RespondeVinculo {
Future<ApiCallResponse> call({ Future<ApiCallResponse> call({
String? tarefa = '', String? tarefa = '',
String? cliID = '',
}) async { }) async {
final baseUrl = PhpGroup.getBaseUrl(); final baseUrl = PhpGroup.getBaseUrl();
final devUUID = StorageUtil().devUUID; final devUUID = StorageUtil().devUUID;
final userUUID = StorageUtil().userUUID; final userUUID = StorageUtil().userUUID;
final cliID = StorageUtil().cliUUID;
return ApiManager.instance.makeApiCall( return ApiManager.instance.makeApiCall(
callName: 'respondeVinculo', callName: 'respondeVinculo',

View File

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