Use same local attachment folder location in dev and prod

This commit is contained in:
Chase Tucker 2023-10-18 14:20:50 -07:00 committed by Tucker Chase (IT FI MES)
parent 88af83cf96
commit 4e04d4666d

View File

@ -92,12 +92,7 @@ namespace Fab2ApprovalSystem.Misc
public static string GetAttachmentFolder()
{
ConfigurationManager.RefreshSection("appSettings");
if (GlobalVars.DBConnection.ToUpper() == "TEST" || GlobalVars.DBConnection.ToUpper() == "QUALITY")
{
return ConfigurationManager.AppSettings["AttachmentFolderTest"];
}
else
return ConfigurationManager.AppSettings["AttachmentFolder"];
return ConfigurationManager.AppSettings["AttachmentFolder"];
}