mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Expanded Exclusion list for numeric conversion on db queries
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user