reduce unction is no longer async
This commit is contained in:
@ -39,7 +39,7 @@ const syncReadPosition = async (cacheKey: string) => {
|
||||
positions.positionItems &&
|
||||
positions.positionItems.length > 0
|
||||
) {
|
||||
const position = await reduceCachedReadingPositionMembers(
|
||||
const position = reduceCachedReadingPositionMembers(
|
||||
components.uid,
|
||||
components.libraryItemID,
|
||||
positions.positionItems
|
||||
|
||||
@ -125,7 +125,7 @@ export const reduceCachedReadingPositionMembers = (
|
||||
uid: string,
|
||||
libraryItemID: string,
|
||||
items: ReadingProgressCacheItem[]
|
||||
): Promise<ReadingProgressCacheItem | undefined> => {
|
||||
): ReadingProgressCacheItem | undefined => {
|
||||
try {
|
||||
if (!items || items.length < 1) {
|
||||
return undefined
|
||||
|
||||
Reference in New Issue
Block a user