From 9fe0903d29acd8d6371f8d38c9a6e245d0087dc8 Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Wed, 19 Nov 2025 09:27:47 +0900 Subject: [PATCH] general: getObjectById - get from _isGeneral --- server/src/general/general.service.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/src/general/general.service.ts b/server/src/general/general.service.ts index cb4566a..dc988d5 100644 --- a/server/src/general/general.service.ts +++ b/server/src/general/general.service.ts @@ -183,13 +183,12 @@ export class GeneralService { } async getObjectById(id: string): Promise { - const generalDatabase = 'nGeneral' - const gisDatabase = 'New_Gis' + const generalDatabase = '_isGeneral' - const result = await this.dataSource.query(` + const result = await this.generalDataSource.query(` SELECT * FROM ${generalDatabase}..vObjects - WHERE id_object = '${id}' - `) + WHERE id_object = @0 + `, [id]) return result }