From 0478b5243865d4c9b673cc54126bb55c209d743c Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Wed, 18 Dec 2024 22:24:08 +0100 Subject: [PATCH] Finish generator with return statement --- src/gConsent/query/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gConsent/query/query.ts b/src/gConsent/query/query.ts index 25803848..bba9d038 100644 --- a/src/gConsent/query/query.ts +++ b/src/gConsent/query/query.ts @@ -277,5 +277,5 @@ export async function* paginateQuery( page = await query(page.next, options); } // Return the last page. - yield page; + return page; }