seongjinyoon commented on code in PR #3729:
URL: https://github.com/apache/texera/pull/3729#discussion_r2345149133


##########
core/amber/src/main/scala/edu/uci/ics/texera/web/resource/EmailTemplate.scala:
##########
@@ -29,11 +29,7 @@ import 
edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum
 object EmailTemplate {
 
   private val deployment: String = {
-    val config = ConfigFactory.load()
-    val rawDomain =
-      if (config.hasPath("user-sys.domain")) 
config.getString("user-sys.domain")
-      else ""
-    rawDomain.replaceFirst("^https?://", "")
+    UserSystemConfig.appDomain.map(_.replaceFirst("^https?://", 
"")).getOrElse("")

Review Comment:
   You are right.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@texera.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to