Skip to content

Commit e6e27c7

Browse files
Copilotrenemadsen
andcommitted
Fix C# code warnings: remove obsolete methods and unused variable
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 7837f36 commit e6e27c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
149149
{
150150
builder.EnableRetryOnFailure();
151151
builder.MigrationsAssembly(PluginAssembly().FullName);
152-
builder.TranslateParameterizedCollectionsToConstants();
153152
}));
154153

155154
var angularDbConnectionString = connectionString.Replace(
@@ -160,7 +159,6 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
160159
{
161160
builder.EnableRetryOnFailure();
162161
builder.MigrationsAssembly(PluginAssembly().FullName);
163-
builder.TranslateParameterizedCollectionsToConstants();
164162
}));
165163

166164

@@ -438,7 +436,7 @@ private static void CheckUploadedDataIntegrity(MicrotingDbContext dbContext, Cor
438436
{
439437
core.DownloadUploadedData(ud.Id).GetAwaiter().GetResult();
440438
}
441-
} catch (Exception ex)
439+
} catch (Exception)
442440
{
443441
try
444442
{

eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/Helpers/WordProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void AddHtml(string html)
5959
}
6060

6161
var converter = new HtmlConverter(mainPart);
62-
converter.ParseHtml(html);
62+
converter.ParseBody(html);
6363
mainPart.Document.Save();
6464
}
6565

0 commit comments

Comments
 (0)