repo/fs: fixup update task index

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-16 16:16:41 +03:00
parent bcc4e59c12
commit ee8d185071
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ impl Repository for FsRepo {
return Err(Error::NotFound);
}
let mut task = &mut tasks[id];
let mut task = &mut tasks[id - 1];
if let Some(name) = update_data.name {
task.name = name;
}