Skip to content

Commit

Permalink
Fix typo (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimurash committed Dec 16, 2024
1 parent e3ca09c commit 9c825e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/api/google-books.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface GoogleAPIError {
};
}

const GOOGLE_BOOOKS_BASE_URL = 'https://www.googleapis.com/books/v1/volumes';
const GOOGLE_BOOKS_BASE_URL = 'https://www.googleapis.com/books/v1/volumes';

const getGoogleBookInfo = (volumeInfo: GoogleBooksVolumeInfo) => {
// ISBNを取得する
Expand Down Expand Up @@ -106,7 +106,7 @@ app.get(

// Google Books APIにリクエストを送信する
const response = await fetch(
`${GOOGLE_BOOOKS_BASE_URL}?${params.toString()}`,
`${GOOGLE_BOOKS_BASE_URL}?${params.toString()}`,
);
if (response.status !== 200) {
const error: GoogleAPIError = await response.json();
Expand Down Expand Up @@ -174,7 +174,7 @@ app.get(
const volumeId = param['volumeId'];

const response = await fetch(
`${GOOGLE_BOOOKS_BASE_URL}/${volumeId}?key=${ctx.env.GOOGLE_BOOKS_API_KEY}`,
`${GOOGLE_BOOKS_BASE_URL}/${volumeId}?key=${ctx.env.GOOGLE_BOOKS_API_KEY}`,
);
if (response.status !== 200) {
const error: GoogleAPIError = await response.json();
Expand Down

0 comments on commit 9c825e8

Please sign in to comment.