ваше сообщение коммита
This commit is contained in:
@@ -323,8 +323,6 @@ class EncryptedDataService {
|
||||
*/
|
||||
async deleteData(tableName, conditions) {
|
||||
try {
|
||||
console.log(`[EncryptedDataService] deleteData: tableName=${tableName}, conditions=`, conditions);
|
||||
|
||||
// Проверяем, включено ли шифрование
|
||||
if (!this.isEncryptionEnabled) {
|
||||
return await this.executeUnencryptedQuery(tableName, conditions);
|
||||
@@ -339,8 +337,6 @@ class EncryptedDataService {
|
||||
ORDER BY ordinal_position
|
||||
`, [tableName]);
|
||||
|
||||
console.log(`[EncryptedDataService] Columns for ${tableName}:`, columns.map(c => c.column_name));
|
||||
|
||||
// Функция для заключения зарезервированных слов в кавычки
|
||||
const quoteReservedWord = (word) => {
|
||||
const reservedWords = ['order', 'group', 'user', 'index', 'table', 'column', 'key', 'foreign', 'primary', 'unique', 'check', 'constraint', 'default', 'null', 'not', 'and', 'or', 'as', 'on', 'in', 'is', 'like', 'between', 'exists', 'all', 'any', 'some', 'distinct', 'case', 'when', 'then', 'else', 'end', 'limit', 'offset', 'having', 'union', 'intersect', 'except', 'with', 'recursive'];
|
||||
@@ -383,9 +379,6 @@ class EncryptedDataService {
|
||||
params.unshift(this.encryptionKey);
|
||||
}
|
||||
|
||||
console.log(`[EncryptedDataService] DELETE query: ${query}`);
|
||||
console.log(`[EncryptedDataService] DELETE params:`, params);
|
||||
|
||||
const result = await db.getQuery()(query, params);
|
||||
return result.rows;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user