Skip to content

Commit fcbf22c

Browse files
author
“A1-4U2T1NN”
committed
feat: added id to row array;
1 parent 35b501f commit fcbf22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_10/libraries/src/loaders/chigazo_graham_loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class ChigazoGrahamLoader implements Loader {
2626
encoding: 'utf-8'
2727
});
2828
for await (const row of readable) {
29-
const { type, title, genre, year } = row;
30-
mediaItems.push(new MediaItem( type, title, genre, year, []));
29+
const { id, type, title, genre, year } = row;
30+
mediaItems.push(new MediaItem( id, type, title, genre, year, ));
3131
}
3232
return mediaItems;
3333
}

0 commit comments

Comments
 (0)