Skip to content

Commit ebfacf5

Browse files
author
AmiyahJo
committed
fix: chnaged name to my array from movieitem to allMedia
1 parent b009f8c commit ebfacf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lesson_10/libraries/src/loaders/amiyah_jones.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ export class AmiyahJonesLoader implements Loader {
2121

2222
async loadMediaItems(): Promise<MediaItem[]> {
2323
// TODO: Implement this method.
24-
const movieItem = [];
24+
const allMedia = [];
2525
const readable = fs
2626
.createReadStream('data/media_items.csv', 'utf-8')
2727
.pipe(csv());
2828
for await (const row of readable) {
2929
const { id,type,title,year } = row;
30-
movieItem.push(new MediaItem(id,type,title,year, []));
30+
allMedia.push(new MediaItem(id,type,title,year, []));
3131
}
32-
return movieItem;
32+
return allMedia;
3333
}
3434

3535
async loadCredits(): Promise<Credit[]> {

0 commit comments

Comments
 (0)