We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc3a32 commit a375388Copy full SHA for a375388
packages/rpc/src/routers/websites.ts
@@ -209,12 +209,18 @@ const fetchChartData = async (
209
acc[id] = { points: [], hasAnyData: false };
210
return acc;
211
},
212
- {} as Record<string, { points: { date: string; value: number }[]; hasAnyData: boolean }>
+ {} as Record<
213
+ string,
214
+ { points: { date: string; value: number }[]; hasAnyData: boolean }
215
+ >
216
);
217
218
for (const row of queryResults) {
219
if (groupedData[row.websiteId]) {
- groupedData[row.websiteId].points.push({ date: row.date, value: row.value });
220
+ groupedData[row.websiteId].points.push({
221
+ date: row.date,
222
+ value: row.value,
223
+ });
224
if (row.hasAnyData === 1) {
225
groupedData[row.websiteId].hasAnyData = true;
226
}
0 commit comments