mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
Refactor AnalyticsDatabaseService and Statement classes
This commit is contained in:
parent
c9df4deb16
commit
ed601cc187
@ -331,7 +331,6 @@ export default class AnalyticsDatabaseService<
|
|||||||
`);
|
`);
|
||||||
/* eslint-enable prettier/prettier */
|
/* eslint-enable prettier/prettier */
|
||||||
|
|
||||||
|
|
||||||
logger.info(`${this.model.tableName} Find Statement`);
|
logger.info(`${this.model.tableName} Find Statement`);
|
||||||
logger.info(statement);
|
logger.info(statement);
|
||||||
|
|
||||||
|
@ -103,11 +103,9 @@ export class Statement implements BaseQueryParams {
|
|||||||
finalValue = v.value.value;
|
finalValue = v.value.value;
|
||||||
} else if (v.value instanceof Includes) {
|
} else if (v.value instanceof Includes) {
|
||||||
if (v.type === TableColumnType.Text) {
|
if (v.type === TableColumnType.Text) {
|
||||||
finalValue = v.value.values
|
finalValue = v.value.values.map((val: string | ObjectID) => {
|
||||||
.map((val: string | ObjectID) => {
|
return `'${val.toString()}'`;
|
||||||
return `'${val.toString()}'`;
|
});
|
||||||
})
|
|
||||||
.join(',');
|
|
||||||
} else {
|
} else {
|
||||||
finalValue = v.value.values;
|
finalValue = v.value.values;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user