From d15e07547efab6581145d502632875c359b25524 Mon Sep 17 00:00:00 2001 From: Evgenii Fedoryachenko Date: Thu, 16 Nov 2023 19:17:44 +0100 Subject: [PATCH] fix(movie): externalID isn't returned --- src/movie/entities/v1.4/meili-movie.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movie/entities/v1.4/meili-movie.entity.ts b/src/movie/entities/v1.4/meili-movie.entity.ts index 84ccd38..058677c 100644 --- a/src/movie/entities/v1.4/meili-movie.entity.ts +++ b/src/movie/entities/v1.4/meili-movie.entity.ts @@ -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 || '';