From 2304700fb833d83e362e14c4027c60391b60189c Mon Sep 17 00:00:00 2001 From: WaseemAbbasi22 <50428976+WaseemAbbasi22@users.noreply.github.com> Date: Sun, 30 Aug 2026 11:47:36 +0300 Subject: [PATCH] final fixes --- lib/controllers/providers/api/devices_provider.dart | 3 +-- lib/models/generic_attachment_model.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/controllers/providers/api/devices_provider.dart b/lib/controllers/providers/api/devices_provider.dart index d8c9ec51..a8369891 100644 --- a/lib/controllers/providers/api/devices_provider.dart +++ b/lib/controllers/providers/api/devices_provider.dart @@ -270,8 +270,7 @@ class AssetProvider extends ChangeNotifier { "pageSize": documentPageItemNumber, "pageNumber": pageNumber, "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 a3854344..0821953f 100644 --- a/lib/models/generic_attachment_model.dart +++ b/lib/models/generic_attachment_model.dart @@ -138,7 +138,7 @@ class GenericAttachmentModel { id = json['id']; name = json['attachmentName']; originalName = json['originalName']; - documentType = json['attachmentType'] != null ? Lookup.fromJson(json['attachmentType']) : null; + documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null; moduleReferenceId = json['demoRequestId']; }