Skip to content

Commit 84a2e28

Browse files
authored
Merge pull request #49 from Jackpieking/F9
fix(F9): Add some change to repo
2 parents 983e87e + f9718dd commit 84a2e28

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Src/Core/F9/DataAccess/F9Repository.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,13 @@ await _appContext
4141

4242
try
4343
{
44-
var rowsAffected = await _appContext
44+
await _appContext
4545
.Set<TodoTaskListEntity>()
4646
.Where(token => token.Id.Equals(taskTodoList.Id))
4747
.ExecuteUpdateAsync(setProp =>
4848
setProp.SetProperty(entity => entity.Name, taskTodoList.Name)
4949
);
5050

51-
if (rowsAffected == 0)
52-
{
53-
throw new DbUpdateException();
54-
}
55-
5651
await dbTransaction.CommitAsync(ct);
5752
}
5853
catch (DbUpdateException)

0 commit comments

Comments
 (0)