Skip to content

Commit

Permalink
return list instead of one
Browse files Browse the repository at this point in the history
  • Loading branch information
bramart committed Apr 23, 2024
1 parent d0bf657 commit 2b6aaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nomalab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ export class Nomalab {
return response.blob() as Promise<Blob>;
}

async getSubtitleFormatsList(): Promise<SubtitleFormats> {
async getSubtitleFormatsList(): Promise<SubtitleFormats[]> {
const response = await this.#fetch(`subtitleFormats`, {});
if (!response.ok) {
this.#throwError(
`ERROR - Can't find subtitleFormatsList .`,
response,
);
}
return response.json() as Promise<SubtitleFormats>;
return response.json() as Promise<SubtitleFormats[]>;
}

#throwError(message: string, response: Response): void {
Expand Down

0 comments on commit 2b6aaf9

Please sign in to comment.