Browse Source

Fix search API methods being protected instead of being public

dev
David Ludwig 4 years ago
parent
commit
84cc81f893
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      api/search/src/IpcClient.ts

+ 4
- 4
api/search/src/IpcClient.ts View File

@ -17,28 +17,28 @@ export class IpcClient<M extends Microservice = Microservice> extends IpcClientS
/** /**
* Get the details of a movie * Get the details of a movie
*/ */
protected async details(tmdbId: number) {
public async details(tmdbId: number) {
return await this.request("details", tmdbId); return await this.request("details", tmdbId);
} }
/** /**
* Find a movie by its IMDb ID * Find a movie by its IMDb ID
*/ */
protected async findFromImdb(imdbId: string) {
public async findFromImdb(imdbId: string) {
return await this.request("find", imdbId); return await this.request("find", imdbId);
} }
/** /**
* Search for a movie * Search for a movie
*/ */
protected async search(query: string, year?: number, page?: number) {
public async search(query: string, year?: number, page?: number) {
return await this.request("search", { query, year, page }); return await this.request("search", { query, year, page });
} }
/** /**
* Verify an IMDb ID * Verify an IMDb ID
*/ */
protected async verifyImdbId(imdbId: string) {
public async verifyImdbId(imdbId: string) {
return await this.request("verify_imdb_id", imdbId); return await this.request("verify_imdb_id", imdbId);
} }
} }

Loading…
Cancel
Save