Merge pull request #85 from FRE-Informatica/fix/fd-1107

FIX/FD-1017 - Sincronização de modulos em Usuário com somente um local vinculado
This commit is contained in:
Ivan Antunes 2025-01-20 16:35:07 -03:00 committed by GitHub
commit d7c8d69706
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 7 deletions

View File

@ -1,12 +1,10 @@
import 'dart:async';
import 'dart:developer';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:hub/features/local/index.dart';
import 'package:hub/features/storage/index.dart';
import 'package:hub/flutter_flow/flutter_flow_model.dart';
import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/features/local/index.dart';
class LocalProfileEvent {}

View File

@ -2,10 +2,10 @@ import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:hub/features/backend/index.dart';
import 'package:hub/features/local/index.dart';
import 'package:hub/features/module/data/repositories/license_repository_impl.dart';
import 'package:hub/features/storage/index.dart';
import 'package:hub/flutter_flow/internationalization.dart';
import 'package:hub/features/local/index.dart';
import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/log_util.dart';
@ -86,7 +86,12 @@ class LocalUtil {
.set(ProfileStorageKey.ownerName.key, local['CLU_OWNER_DSC']);
await StorageHelper()
.set(ProfileStorageKey.userName.key, local['USU_NOME']);
return await LocalsRemoteDataSourceImpl().processProperty(context);
return await LocalsRemoteDataSourceImpl()
.processProperty(context)
.then((v) async {
if (v == true) return await LicenseRepositoryImpl().updateLicense();
return v;
});
}
static void logLocalsStatus(List<dynamic> locals) {