Skip to content

Commit

Permalink
Remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Dec 20, 2024
1 parent dba3a55 commit 39340c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/api/Controllers/ImportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ private sealed class CsvImportBoreholeMap : ClassMap<BoreholeImport>

public CsvImportBoreholeMap(List<Codelist> codelists)
{
this.codelists = codelists;
AutoMap(CsvConfigHelper.CsvReadConfig);

// Define all optional properties of Borehole (ef navigation properties do not need to be defined as optional).
Expand Down
1 change: 1 addition & 0 deletions tests/api/Controllers/ImportControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ public async Task UploadJsonWithDuplicatesExistingBoreholeShouldReturnError()
[TestMethod]
public async Task UploadShouldSaveDataToDatabaseAsync()
{
// Add new borehole identifier to test dynamic ID import.
context.Codelists.Add(new Codelist { Id = TestCodelistId, Schema = "borehole_identifier", Code = "new code", En = "Random New Id", Conf = null });
await context.SaveChangesAsync();

Expand Down

0 comments on commit 39340c2

Please sign in to comment.