general: getObjectById - get from _isGeneral

This commit is contained in:
2025-11-19 09:27:47 +09:00
parent 051411a3ee
commit 9fe0903d29

View File

@ -183,13 +183,12 @@ export class GeneralService {
} }
async getObjectById(id: string): Promise<any[]> { async getObjectById(id: string): Promise<any[]> {
const generalDatabase = 'nGeneral' const generalDatabase = '_isGeneral'
const gisDatabase = 'New_Gis'
const result = await this.dataSource.query(` const result = await this.generalDataSource.query(`
SELECT * FROM ${generalDatabase}..vObjects SELECT * FROM ${generalDatabase}..vObjects
WHERE id_object = '${id}' WHERE id_object = @0
`) `, [id])
return result return result
} }