update command and contact controller to user standard

This commit is contained in:
osaajani 2019-11-13 06:13:55 +01:00
parent 155a048834
commit 35b74c9458
4 changed files with 58 additions and 109 deletions

View file

@ -66,12 +66,12 @@ namespace controllers\internals;
*/
public function update_for_user(int $id_user, int $id, string $name, string $script, bool $admin)
{
$command = [
$datas = [
'name' => $name,
'script' => $script,
'admin' => $admin,
];
return $this->model_command->update_for_user($id_user, $id, $command);
return $this->model_command->update_for_user($id_user, $id, $datas);
}
}