Some more stuff

This commit is contained in:
Julius Haertl
2016-06-05 23:39:15 +02:00
parent e10fe82afb
commit ae9d5da329
18 changed files with 1027 additions and 185 deletions

View File

@@ -39,11 +39,11 @@ class StackService {
}
public function delete($userId, $id) {
return $this->stackMapper->delete($this->find($userId, $id));
return $this->stackMapper->delete($this->stackMapper->find($id));
}
public function update($id, $title, $boardId, $order) {
$stack = $this->find($id);
$stack = $this->stackMapper->find($id);
$stack->setTitle($title);
$stack->setBoardId($boardId);
$stack->setOrder($order);