docs: #275 bug fix
This commit is contained in:
parent
24cf371b0e
commit
77df96f685
@ -224,6 +224,7 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
photo.ChosenOne = false;
|
||||
}
|
||||
_context.UpdateRange(oldChosenOnes);
|
||||
}
|
||||
|
||||
await _context.SaveChangesAsync();
|
||||
@ -235,8 +236,11 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
photo.PicOrder = photo.PicOrder + 1;
|
||||
}
|
||||
if(others.Count > 0)
|
||||
if (others.Count > 0)
|
||||
{
|
||||
_context.UpdateRange(others);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user