updated endpoint for getting automation by id

This commit is contained in:
hannathkadher
2025-03-14 12:55:33 +04:00
parent 0673548745
commit 88aac86b10
3 changed files with 7 additions and 4 deletions

View File

@ -119,11 +119,12 @@ class SceneApi {
//automation details
static Future<SceneDetailsModel> getAutomationDetails(
String automationId) async {
String automationId, String projectId) async {
try {
final response = await _httpService.get(
path: ApiEndpoints.getAutomationDetails
.replaceAll('{automationId}', automationId),
.replaceAll('{automationId}', automationId)
.replaceAll('{projectId}', projectId),
showServerMessage: false,
expectedResponseModel: (json) => SceneDetailsModel.fromJson(json),
);