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

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;
}