Skip to content

Commit

Permalink
Merge pull request #427 from DigitalExcellence/hotfix/v1.2.1
Browse files Browse the repository at this point in the history
Hotfix/v1.2.1
  • Loading branch information
niraymak authored Apr 15, 2021
2 parents e3b8d11 + a4f50fd commit 584fa70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
9 changes: 1 addition & 8 deletions API/Controllers/DataSourceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,7 @@ public async Task<IActionResult> UpdateDataSource(string guid, [FromBody] DataSo

if(dataSourceResource.IconId != 0)
{
if(dataSourceModel.Icon != null)
{
File fileToDelete = await fileService.FindAsync(dataSourceModel.Icon.Id);
fileUploader.DeleteFileFromDirectory(fileToDelete);
await fileService.RemoveAsync(dataSourceModel.Icon.Id);
fileService.Save();
}


File file = await fileService.FindAsync(dataSourceResource.IconId);
if(file != null)
{
Expand Down
9 changes: 0 additions & 9 deletions API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,15 +522,6 @@ private static void UpdateDatabase(IApplicationBuilder app, IWebHostEnvironment

// TODO seed embedded projects
}

if(context.User.FirstOrDefault(e => e.IdentityId == "74489498") != null)
{
context.User.Remove(context.User.FirstOrDefault(e => e.IdentityId == "74489498"));
context.SaveChanges();
}

context.User.Add(Seed.SeedAdminUser2(roles));
context.SaveChanges();


// Seed call to action options
Expand Down

0 comments on commit 584fa70

Please sign in to comment.