Skip to content

Commit

Permalink
Fix #616 CommonFileStore: when a user adds a filestore and then tries…
Browse files Browse the repository at this point in the history
… to delete the filestore the application crashes (#619)
  • Loading branch information
joao4all authored May 16, 2024
1 parent d0ac4fc commit 4f13492
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ public async Task DeleteThing()

try
{
await this.SessionService.DeleteThings(clonedContainer, [this.Thing]);
await this.SessionService.DeleteThings(clonedContainer, [this.Thing.Clone(false)]);
await this.SessionService.RefreshSession();
}
catch (Exception exception)
{
this.Logger.LogError(exception, "An error has occurred while trying to delete the {thingType} {thingName}", typeof(T), ((IShortNamedThing)this.Thing).ShortName);
this.Logger.LogError(exception, "An error has occurred while trying to delete the {thingType} with iid {thingIid}", typeof(T), this.Thing.Iid);
}
}
}
Expand Down

0 comments on commit 4f13492

Please sign in to comment.