Get description as well

This commit is contained in:
aditya.chandel
2025-01-01 15:47:13 -07:00
parent df001a0020
commit 0e6ef1da5e
2 changed files with 6 additions and 2 deletions
@@ -188,7 +188,11 @@ export class BookService {
}
getBookByIdFromAPI(bookId: number, withDescription: boolean) {
return this.http.get<Book>(`${this.url}/${bookId}`);
return this.http.get<Book>(`${this.url}/${bookId}`, {
params: {
withDescription: withDescription.toString()
}
});
}
fetchMetadataFromSource(bookId: number): Observable<FetchedMetadata> {