fix: fixed emails not being able to load the template

snyk-upgrade-deb3cd64f3b08af84313e854d3e5931b
tidusjar 8 months ago
parent ee3bf10421
commit 6b49d9bc71

@ -13,11 +13,9 @@ namespace Ombi.Notifications.Templates
{
if (string.IsNullOrEmpty(_templateLocation))
{
#if DEBUG
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates", "NewsletterTemplate.html");
#else
//_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates", "NewsletterTemplate.html");
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates", "NewsletterTemplate.html");
#endif
}
return _templateLocation;
}

Loading…
Cancel
Save