This commit is contained in:
Benjamin Toby 2025-03-17 09:46:04 +01:00
parent 34f843bc84
commit 870bc7fd17
7 changed files with 1 additions and 14 deletions

View File

@ -105,8 +105,6 @@ function apiCreateUser(_a) {
};
}
const addUser = yield (0, addDbEntry_1.default)({
dbContext: "Dsql User",
paradigm: "Full Access",
dbFullName: dbFullName,
tableName: "users",
data: Object.assign(Object.assign({}, payload), { image: process.env.DSQL_DEFAULT_USER_IMAGE ||

View File

@ -67,7 +67,6 @@ function apiUpdateUser(_a) {
return finalData;
})();
const updateUser = yield (0, updateDbEntry_1.default)({
dbContext: "Dsql User",
dbFullName,
tableName: "users",
identifierColumnName: "id",

View File

@ -36,9 +36,6 @@ function updateDbEntry(_a) {
const DB_CONN = isMaster
? global.DSQL_DB_CONN
: global.DSQL_FULL_ACCESS_DB_CONN || global.DSQL_DB_CONN;
const DB_RO_CONN = isMaster
? global.DSQL_DB_CONN
: global.DSQL_READ_ONLY_DB_CONN || global.DSQL_DB_CONN;
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////

View File

@ -119,8 +119,6 @@ export default async function apiCreateUser({
}
const addUser = await addDbEntry({
dbContext: "Dsql User",
paradigm: "Full Access",
dbFullName: dbFullName,
tableName: "users",
data: {

View File

@ -21,7 +21,6 @@ export default async function apiUpdateUser({
payload,
dbFullName,
updatedUserId,
dbSchema,
}: Param): Promise<Return> {
const existingUserQuery = `SELECT * FROM ${dbFullName}.users WHERE id = ?`;
@ -80,7 +79,6 @@ export default async function apiUpdateUser({
})();
const updateUser = await updateDbEntry({
dbContext: "Dsql User",
dbFullName,
tableName: "users",
identifierColumnName: "id",

View File

@ -46,9 +46,6 @@ export default async function updateDbEntry({
const DB_CONN = isMaster
? global.DSQL_DB_CONN
: global.DSQL_FULL_ACCESS_DB_CONN || global.DSQL_DB_CONN;
const DB_RO_CONN = isMaster
? global.DSQL_DB_CONN
: global.DSQL_READ_ONLY_DB_CONN || global.DSQL_DB_CONN;
////////////////////////////////////////
////////////////////////////////////////

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "4.2.0",
"version": "4.2.1",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {