Skip to content

Commit

Permalink
Merge pull request #390 from itbel/ib-fix-highlights
Browse files Browse the repository at this point in the history
Fixed highlights
  • Loading branch information
itbel committed Jul 19, 2023
2 parents 83a6d42 + eb2c73a commit 6729c28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/services/SermonsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ export default class SermonsService {
nextToken,
},
};
const queryResult = await runGraphQLQuery(query);
const queryResult = (await API.graphql(
query
)) as GraphQLResult<GetVideoByVideoTypeQuery>;

return {
items: queryResult?.getVideoByVideoType?.items,
nextToken: queryResult?.getVideoByVideoType?.nextToken,
items: queryResult?.data?.getVideoByVideoType?.items ?? [],
nextToken: queryResult?.data?.getVideoByVideoType?.nextToken,
};
};
}

0 comments on commit 6729c28

Please sign in to comment.