This commit is contained in:
dal 2025-09-11 13:51:23 -06:00
parent 7a07283e30
commit 48786d55d3
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ export const syncSearchableValues = schedules.task({
}
// Step 2: Group datasets by data source for efficient processing
const datasetsByDataSource = new Map<string, typeof datasets>();
type DatasetWithYml = Awaited<ReturnType<typeof getDatasetsWithYml>>[number];
const datasetsByDataSource = new Map<string, DatasetWithYml[]>();
for (const dataset of datasets) {
const existing = datasetsByDataSource.get(dataset.dataSourceId) || [];
existing.push(dataset);