feat: add book metadata editor with Google Books and OpenLibrary integration
This commit is contained in:
@@ -3,7 +3,13 @@ const axios = require('axios');
|
||||
|
||||
// Fetch book from the local database by ISBN
|
||||
const fetchBookFromLocalDatabase = async (isbn) => {
|
||||
return await Book.findOne({ where: { isbn } });
|
||||
return await Book.findOne({
|
||||
where: { isbn },
|
||||
include: [{
|
||||
model: Location,
|
||||
as: 'Location'
|
||||
}]
|
||||
});
|
||||
};
|
||||
|
||||
// Fetch book from Google Books API
|
||||
|
||||
Reference in New Issue
Block a user