Update:New EBook API endpoint

This commit is contained in:
advplyr 2023-05-28 10:47:28 -05:00
parent b3f19ef628
commit 4f75a89633
11 changed files with 72 additions and 40 deletions

View file

@ -19,7 +19,7 @@ export const getters = {
getIsRoot: (state) => state.user && state.user.type === 'root',
getIsAdminOrUp: (state) => state.user && (state.user.type === 'admin' || state.user.type === 'root'),
getToken: (state) => {
return state.user ? state.user.token : null
return state.user?.token || null
},
getUserMediaProgress: (state) => (libraryItemId, episodeId = null) => {
if (!state.user.mediaProgress) return null