Updates
This commit is contained in:
@@ -48,21 +48,6 @@ export default async function createUserSQLUser(user: UserType) {
|
||||
)}%\`.* TO '${mariaDBUsername}'@'${webHost}'`,
|
||||
})) as any[];
|
||||
|
||||
const updateUser = await dsqlCrud<
|
||||
DSQL_DATASQUIREL_USERS,
|
||||
(typeof DsqlTables)[number]
|
||||
>({
|
||||
action: "update",
|
||||
table: "users",
|
||||
targetField: "id",
|
||||
targetValue: user.id,
|
||||
data: {
|
||||
mariadb_host: webHost,
|
||||
mariadb_pass: encrypt({ data: newPassword }) || undefined,
|
||||
mariadb_user: mariaDBUsername,
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
fullName,
|
||||
host,
|
||||
|
||||
Reference in New Issue
Block a user