diff --git a/build/api/module/message.php b/build/api/module/message.php index 6c486db..42fd1db 100644 --- a/build/api/module/message.php +++ b/build/api/module/message.php @@ -30,8 +30,8 @@ class message $wsi->send([ "operation" => "PostMessage", - "message" => $_SESSION['NAME'], - "username" => $username, + "message" => $message, + "username" => $_SESSION['NAME'], "location" => $location, //TODO implémenter la récupération d'id depuis la bdd "id" => uniqid(),