mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-24 18:26:55 +00:00
fix: Fix nexy's very accurate and not-at-all busted fix to my fix
This commit is contained in:
parent
0672ce5b88
commit
458811f241
1 changed files with 3 additions and 2 deletions
|
@ -588,7 +588,7 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result {
|
|||
.stream()
|
||||
.try_fold(
|
||||
(0_usize, 0_usize),
|
||||
async |(total, mut fixed),
|
||||
async |(mut total, mut fixed),
|
||||
((user, key), value): KeyVal<'_>|
|
||||
-> Result<(usize, usize)> {
|
||||
if let Err(error) = from_slice::<Value>(value) {
|
||||
|
@ -607,8 +607,9 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result {
|
|||
};
|
||||
|
||||
useridprofilekey_value.put((user, key), new_value);
|
||||
fixed = fixed.saturating_add(1);
|
||||
}
|
||||
fixed = total.saturating_add(1);
|
||||
total = total.saturating_add(1);
|
||||
|
||||
Ok((total, fixed))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue