repair: roles controllers

This commit is contained in:
Muhammad Afif
2025-10-10 09:00:23 +07:00
parent 3fd4a4c1b7
commit 6b419495f7
2 changed files with 19 additions and 33 deletions

View File

@@ -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