repair: roles controllers
This commit is contained in:
@@ -46,7 +46,7 @@ const getRoleByIdDb = async (id) => {
|
||||
WHERE role_id = $1 AND deleted_at IS NULL
|
||||
`;
|
||||
const result = await pool.query(queryText, [id]);
|
||||
return result.recordset[0];
|
||||
return result.recordset;
|
||||
};
|
||||
|
||||
// Create role
|
||||
|
||||
Reference in New Issue
Block a user