From 167b292064e4f31d9202b0d02d58bc3f4be0b7e4 Mon Sep 17 00:00:00 2001 From: fazpiazu Date: Thu, 19 Dec 2024 14:38:58 +0100 Subject: [PATCH] Fixed mapping.metadata --- .../metabolic/data/core/services/catalogue/AtlanService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/metabolic/data/core/services/catalogue/AtlanService.scala b/src/main/scala/com/metabolic/data/core/services/catalogue/AtlanService.scala index 18f3312..a85c3e7 100644 --- a/src/main/scala/com/metabolic/data/core/services/catalogue/AtlanService.scala +++ b/src/main/scala/com/metabolic/data/core/services/catalogue/AtlanService.scala @@ -77,7 +77,7 @@ class AtlanService(token: String, baseUrlDataLake: String, baseUrlConfluent: Str def generateMetadaBody(mapping: Config): String = { val last_synced = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) - val mode = mapping.environment.mode + val mode = mapping.metadata.environment.mode val sql = mapping.mappings.head match { case sqlmapping: SQLMapping => { sqlmapping.sqlContents