reduce unction is no longer async

This commit is contained in:
Jackson Harper
2024-02-01 11:24:13 +08:00
parent 792f13edfc
commit 02c28be403
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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