mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
update command and contact controller to user standard
This commit is contained in:
parent
155a048834
commit
35b74c9458
4 changed files with 58 additions and 109 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue