From 482ad8967360a013a0338ecf8caa4bc9e7c3d710 Mon Sep 17 00:00:00 2001
From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it>
Date: Sun, 23 May 2021 12:06:43 +0200
Subject: [PATCH] Correct doc.

---
 src/api/setRole.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/api/setRole.ts b/src/api/setRole.ts
index 7dd8331..ac08f6f 100644
--- a/src/api/setRole.ts
+++ b/src/api/setRole.ts
@@ -1,8 +1,7 @@
 import axios from 'axios';
 
 /**
- * Ask the server all the roles of an user (if the user has multiple roles).
- * @returns array of roles.
+ * Set the role of the user in the database.
  */
 export const setRole = async (role: string): Promise<void> =>
   axios.post('/api/web/login/set_role', { role });
-- 
GitLab