Skip to content

Commit ce91a7a

Browse files
committed
better name for paging function
1 parent f210260 commit ce91a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class Cinnamon {
130130
}
131131

132132
async allPages<T>(
133-
func: (
133+
fetchRelayConnection: (
134134
after: PageInfo['endCursor'],
135135
) => Promise<{
136136
pageInfo?: PageInfo;
@@ -142,7 +142,7 @@ export class Cinnamon {
142142
const getPage = async (
143143
after: PageInfo['endCursor'] = '',
144144
): Promise<void> => {
145-
const { edges, pageInfo } = await func(after);
145+
const { edges, pageInfo } = await fetchRelayConnection(after);
146146

147147
result.push(...edges.map(({ node }: { node: T }) => node));
148148

0 commit comments

Comments
 (0)