repo/fs: fixup update task index
This commit is contained in:
parent
bcc4e59c12
commit
ee8d185071
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue