mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Store Person images in person cache and move client cache args to "dataSourceOptions" instead of queryOptions
This commit is contained in:
1 parent
6b51d57f95
commit
5ae1e66b87
9 files changed
+109
-35
No files matched your search
+12
-2
@@ -1138,7 +1138,12 @@
|
||||
let queryResult;
|
||||
|
||||
if (query.dataSource) {
|
||||
queryResult = await ApiHelper.fetchFromDataSource(query.dataSource, query.queryOptions || {});
|
||||
queryResult = await ApiHelper.fetchFromDataSource(
|
||||
query.dataSource,
|
||||
query.queryOptions || {},
|
||||
true,
|
||||
query.dataSourceOptions
|
||||
);
|
||||
} else {
|
||||
const queryUrl = ApiHelper.buildQueryFromSection(
|
||||
query,
|
||||
@@ -1234,7 +1239,12 @@
|
||||
|
||||
if (query.dataSource) {
|
||||
// Handle cache-based data sources
|
||||
queryResult = await ApiHelper.fetchFromDataSource(query.dataSource, query.queryOptions || {}, false);
|
||||
queryResult = await ApiHelper.fetchFromDataSource(
|
||||
query.dataSource,
|
||||
query.queryOptions || {},
|
||||
false,
|
||||
query.dataSourceOptions
|
||||
);
|
||||
} else {
|
||||
// Build and execute query
|
||||
const queryUrl = ApiHelper.buildQueryFromSection(query, userId, serverUrl, sectionConfig.renderMode === 'Spotlight', { sectionType: sectionConfig.type });
|
||||
|
||||
Reference in new issue
Block a user