From 5fba746f89ab8ad9b58326b9fa60a47fedad4350 Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Fri, 25 Aug 2023 15:24:10 +0600 Subject: [PATCH] fix: skip parameter in findMany --- packages/hoppscotch-backend/src/shortcode/shortcode.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-backend/src/shortcode/shortcode.service.ts b/packages/hoppscotch-backend/src/shortcode/shortcode.service.ts index d7d0c5d9c..87fb5405a 100644 --- a/packages/hoppscotch-backend/src/shortcode/shortcode.service.ts +++ b/packages/hoppscotch-backend/src/shortcode/shortcode.service.ts @@ -150,7 +150,7 @@ export class ShortcodeService implements UserDataHandler, OnModuleInit { orderBy: { createdOn: 'desc', }, - skip: 1, + skip: args.cursor ? 1 : 0, take: args.take, cursor: args.cursor ? { id: args.cursor } : undefined, });