Created
August 12, 2020 18:49
-
-
Save kop7/fcf53b287e28d2c37c4fa9340fb741ef to your computer and use it in GitHub Desktop.
Movie Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@nestjs/common'; | |
import { SearchService } from '../search/search.service'; | |
@Injectable() | |
export class MovieService { | |
constructor(readonly esService: SearchService) {} | |
async findMovies(search: string = '') { | |
return await this.esService.search(search); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment