Skip to content

Commit 6cb8e29

Browse files
committed
Feat: Adds Shawn Dunsmore Lesson010 Loader.
1 parent 840aecb commit 6cb8e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_10/libraries/src/loaders/shawn_dunsmore_loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class ShawnDunsmoreLoader implements Loader {
2626
.pipe(csv());
2727

2828
for await (const row of readable) {
29-
const { id, title, type, year } = row; // Adjust the fields based on your CSV structure
30-
mediaItems.push(new MediaItem(id, title, type, year, [])); // Assuming MediaItem constructor matches this
29+
const { id, title, type, year } = row;
30+
mediaItems.push(new MediaItem(id, title, type, year, []));
3131
}
3232

3333
return mediaItems;

0 commit comments

Comments
 (0)