general: getObjectById - get from _isGeneral
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user