correct comment following previous commit

This commit is contained in:
Daniel Roth 2026-06-30 11:10:19 +00:00
parent 7c9faba215
commit 54cf807f2b

View file

@ -44,7 +44,7 @@ export async function GET(req: Request) {
// that was already processed: same S3 key gets a new version, but a new DB row
// is written each time.
//
// Step 1: same s3FileKey → keep the row with the highest id (latest insert).
// Step 1: same s3FileKey → keep the row with the most recent upload timestamp.
const latestByS3Key = new Map<string, (typeof rows)[number]>();
for (const row of rows) {
const existing = latestByS3Key.get(row.s3FileKey);