Expanded Exclusion list for numeric conversion on db queries

This commit is contained in:
CyferShepard
2025-04-08 10:22:08 +02:00
parent 7348c22ab8
commit 6e80cee618
2 changed files with 26 additions and 2 deletions

View File

@@ -160,7 +160,19 @@ async function query({
const countResult = await client.query(countQuery, values);
const totalRows = parseInt(countResult.rows.length > 0 ? countResult.rows[0].count : 0, 10);
const skippedColumns = ["Name", "NowPlayingItemName"];
const skippedColumns = [
"Name",
"NowPlayingItemName",
"SeriesName",
"SeasonName",
"Id",
"NowPlayingItemId",
"ParentId",
"SeriesId",
"SeasonId",
"EpisodeId",
"ServerId",
];
// Convert integer fields in the result rows
const convertedRows = result.rows.map((row) => {
return Object.keys(row).reduce((acc, key) => {

View File

@@ -183,7 +183,19 @@ async function query(text, params, refreshViews = false) {
}
}
const skippedColumns = ["Name", "NowPlayingItemName"];
const skippedColumns = [
"Name",
"NowPlayingItemName",
"SeriesName",
"SeasonName",
"Id",
"NowPlayingItemId",
"ParentId",
"SeriesId",
"SeasonId",
"EpisodeId",
"ServerId",
];
// Convert integer fields in the result rows
const convertedRows = result.rows.map((row) => {
return Object.keys(row).reduce((acc, key) => {