You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently started with running the movie rental code on my local windows10 machine. I did successfully run the two commands npm install and cd docker-database && docker-compose up -d. But when I tried to run npm start I got the following error(s) :
Type 'Filter<AnyObject>' is not assignable to type 'Filter<Client>'.
Type 'AnyObject' is missing the following properties from type 'Client': id, name, email, pass, and 5 more.
44 return await this.clientRepository.find(filter);
~~~~~~
src/controllers/rent.controller.ts:46:47 - error TS2345: Argument of type 'Filter<AnyObject> | undefined' is not assignable to parameter of type 'Filter<Rent> | undefined'.
Type 'Filter<AnyObject>' is not assignable to type 'Filter<Rent>'.
Type 'AnyObject' is missing the following properties from type 'Rent': id, status, clientId, movieCopyId, and 4 more.
46 return await this.rentRepository.find(filter);
~~~~~~
src/repositories/movie-copy.repository.ts:33:26 - error TS2345: Argument of type 'Filter<AnyObject>' is not assignable to parameter of type 'Filter<MovieCopy>'.
Type 'AnyObject' is missing the following properties from type 'MovieCopy': id, status, movieId, getId, and 3 more.
33 return this.find(filter);
~~~~~~
src/repositories/movie.repository.ts:31:30 - error TS2345: Argument of type 'Filter<AnyObject>' is not assignable to parameter of type 'Filter<Movie>'.
Type 'AnyObject' is missing the following properties from type 'Movie': id, title, director, copies, and 4 more.
31 return this.find(filter);
~~~~~~
src/repositories/movie.repository.ts:38:26 - error TS2345: Argument of type 'Filter<AnyObject>' is not assignable to parameter of type 'Filter<Movie>'.
38 return this.find(filter);
~~~~~~
Found 5 errors.
Please let me know the fix for this or how I can help in removing this.
The text was updated successfully, but these errors were encountered:
I recently started with running the movie rental code on my local windows10 machine. I did successfully run the two commands
npm install
andcd docker-database && docker-compose up -d
. But when I tried to runnpm start
I got the following error(s) :Please let me know the fix for this or how I can help in removing this.
The text was updated successfully, but these errors were encountered: