mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: remove last char from datetime and time if is a dot
This commit is contained in:
@ -1267,8 +1267,8 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
|
||||
queryResult = rows.map(row => {
|
||||
return row.reduce((acc, curr, i) => {
|
||||
const table = tablesInfo[fields[i].tableID].table;
|
||||
acc[`${table}.${fields[i].name}`] = curr;
|
||||
const table = tablesInfo[fields[i].tableID] ? tablesInfo[fields[i].tableID].table : '';
|
||||
acc[`${table ? `${table}.` : ''}${fields[i].name}`] = curr;
|
||||
return acc;
|
||||
}, {});
|
||||
});
|
||||
|
Reference in New Issue
Block a user