Skip to content

Commit ef71f54

Browse files
committed
fix: changed return to include credits
1 parent 2626915 commit ef71f54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lesson_10/libraries/src/loaders/chelsea_ogbonnia_loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class ChelseaOgbonniaLoader implements Loader {
6161
.pipe(csv());
6262
for await (const row of readable) {
6363
const { media_item_id: mediaItemId, role, name } = row;
64-
credits.push({ mediaItemId, name, role });
64+
const credit = new Credit(mediaItemId, name, role);
65+
credits.push(credit);
6566
}
6667
return credits;
6768
}

0 commit comments

Comments
 (0)