From e5d14ca1896ff58f26886c06f8e414f20cf6a0d4 Mon Sep 17 00:00:00 2001 From: sambokar Date: Tue, 24 Dec 2024 14:48:03 -0500 Subject: [PATCH] missing merge conflicts. --- .../datagrids/measurementscommons.tsx | 1 + frontend/config/utils.ts | 20 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/frontend/components/datagrids/measurementscommons.tsx b/frontend/components/datagrids/measurementscommons.tsx index 33cb0596..68fc5c00 100644 --- a/frontend/components/datagrids/measurementscommons.tsx +++ b/frontend/components/datagrids/measurementscommons.tsx @@ -273,6 +273,7 @@ export default function MeasurementsCommons(props: Readonly(schema: string, tableName: string, whe .map(key => `\`${key}\` = ?`) // Escaping column names with backticks .join(' AND '); -<<<<<<< HEAD - return `SELECT * FROM \`${schema}\`.\`${tableName}\` WHERE ${whereConditions} ${limiter ? `LIMIT ${limiter}` : ``}`; -======= return `SELECT * FROM \`${schema}\`.\`${tableName}\` WHERE ${whereConditions} ${limiter ? `LIMIT ${limiter}` : ``}`; ->>>>>>> development-hotfixes } export function createInsertOrUpdateQuery(schema: string, tableName: string, data: Partial): string { @@ -180,11 +176,6 @@ export async function handleUpsert( console.log('query: ', query); console.log('values: ', Object.values(data)); const result = await connectionManager.executeQuery(query, Object.values(data)); -<<<<<<< HEAD - console.log('result: ', result); - -======= ->>>>>>> development-hotfixes id = result.insertId; if (id === 0) { @@ -224,11 +215,7 @@ export async function handleUpsert( console.log('values: ', Object.values(values)); const searchResult = await connectionManager.executeQuery(findExistingQuery, values); -<<<<<<< HEAD - console.log('search result: ', searchResult); -======= console.log('find existing query search result: ', searchResult); ->>>>>>> development-hotfixes if (searchResult.length > 0) { id = searchResult[0][key as keyof Result] as unknown as number; @@ -241,15 +228,8 @@ export async function handleUpsert( return { id, operation: 'inserted' }; } catch (e: any) { -<<<<<<< HEAD - console.log('error in handleUpsert: ', e.message); - process.exit(0); - createError(e.message, e); -======= console.error('Error in handleUpsert:', e.message, 'Stack:', e.stack); - process.exit(0); throw createError(e.message, e); ->>>>>>> development-hotfixes } }