From 9f76874217ea684fd6e74faeb090b0cb97c5aaea Mon Sep 17 00:00:00 2001 From: WaseemAbbasi22 <50428976+WaseemAbbasi22@users.noreply.github.com> Date: Sun, 30 Aug 2026 10:58:17 +0300 Subject: [PATCH] improvements --- lib/controllers/providers/api/devices_provider.dart | 4 +++- lib/models/generic_attachment_model.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/controllers/providers/api/devices_provider.dart b/lib/controllers/providers/api/devices_provider.dart index c8b5b9c7..d8c9ec51 100644 --- a/lib/controllers/providers/api/devices_provider.dart +++ b/lib/controllers/providers/api/devices_provider.dart @@ -269,7 +269,9 @@ class AssetProvider extends ChangeNotifier { var body = { "pageSize": documentPageItemNumber, "pageNumber": pageNumber, - "assetIds": [assetId] + "assetIds": [assetId], + 'ModuleIds': [1],///backend team ask to add this static values + 'SubModuleIds': [3],///backend team ask to add this static values }; response = await ApiManager.instance.post(URLs.assetDocumentHistory, body: body); stateCode = response.statusCode; diff --git a/lib/models/generic_attachment_model.dart b/lib/models/generic_attachment_model.dart index 68f262b3..a3854344 100644 --- a/lib/models/generic_attachment_model.dart +++ b/lib/models/generic_attachment_model.dart @@ -160,7 +160,7 @@ class GenericAttachmentModel { id = json['id']; name = json['attachmentName']; attachmentURL = json['attachmentURL']; - documentType = json['attachmentType'] != null ? Lookup.fromJson(json['attachmentType']) : null; + documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null; originalName = json['originalName']; } GenericAttachmentModel.fromAssetInventoryJson(Map json) {