Fix thisday processing

old-stable24
Varun Patil 2022-10-11 14:02:42 -07:00
parent 98364be962
commit 4ca2ec5556
1 changed files with 2 additions and 1 deletions

View File

@ -405,7 +405,7 @@ export async function getOnThisDayData(): Promise<IDay[]> {
// Group photos by day // Group photos by day
const ans: IDay[] = []; const ans: IDay[] = [];
const prevDayId = Number.MIN_SAFE_INTEGER; let prevDayId = Number.MIN_SAFE_INTEGER;
for (const photo of data) { for (const photo of data) {
if (!photo.dayid) continue; if (!photo.dayid) continue;
@ -416,6 +416,7 @@ export async function getOnThisDayData(): Promise<IDay[]> {
count: 0, count: 0,
detail: [], detail: [],
}); });
prevDayId = photo.dayid;
} }
// Add to last day // Add to last day