fix(admin auth): added in role change for v1

This commit is contained in:
2025-03-30 10:10:01 -05:00
parent 11e5cf4d86
commit f9096b54f5
3 changed files with 59 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ export const updateUserADM = async (userData: User) => {
* password, username, email.
*/
console.log(userData);
createLog(
"info",
"apiAuthedRoute",
@@ -46,6 +47,7 @@ export const updateUserADM = async (userData: User) => {
username: userData.username ? userData.username : upd_user?.username,
password: password,
email: userData.email ? userData.email : upd_user.email,
role: userData.role ? userData.role : upd_user.role,
};
// term ? ilike(posts.title, term) : undefined