Fix:Accounts user page fix cover images

This commit is contained in:
advplyr 2021-12-16 19:08:02 -06:00
parent 1463af28ce
commit 6160da475f
2 changed files with 12 additions and 1 deletions

View file

@ -23,6 +23,10 @@ export const getters = {
var userToken = rootGetters['user/getToken']
var bookLastUpdate = book.lastUpdate || Date.now()
if (!bookItem.id) {
console.error('No book item id', bookItem)
}
if (process.env.NODE_ENV !== 'production') { // Testing
return `http://localhost:3333/api/books/${bookItem.id}/cover?token=${userToken}&ts=${bookLastUpdate}`
}