Skip to content

Commit

Permalink
fix(movie): externalID isn't returned
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwitr0 committed Nov 16, 2023
1 parent c592482 commit d15e075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movie/entities/v1.4/meili-movie.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class MeiliMovieEntityV1_4 extends OmitType(MeiliMovieEntity, [

public fromMongoDocument(movie: Movie): this {
this.id = movie.id;
this.externalId = movie.externalId;
this.externalId = movie?.externalId || {};
this.name = movie.name || '';
this.alternativeName = movie.alternativeName || '';
this.enName = movie.enName || '';
Expand Down

0 comments on commit d15e075

Please sign in to comment.