mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
correct comment following previous commit
This commit is contained in:
parent
7c9faba215
commit
54cf807f2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue