Skip to content

Commit e880d48

Browse files
authored
Merge pull request #2105 from dubinc/fix-searchAfter
2 parents 0e56e98 + 2580a53 commit e880d48

File tree

1 file changed

+4
-5
lines changed
  • apps/web/app/api/cron/import/bitly

1 file changed

+4
-5
lines changed

apps/web/app/api/cron/import/bitly/utils.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const importLinksFromBitly = async ({
6969
domains,
7070
folderId,
7171
tagsToId,
72-
nextSearchAfter: searchAfter,
72+
searchAfter,
7373
count,
7474
rateLimited: true,
7575
});
@@ -278,7 +278,7 @@ export const importLinksFromBitly = async ({
278278
domains,
279279
folderId,
280280
tagsToId,
281-
nextSearchAfter,
281+
searchAfter: nextSearchAfter,
282282
count,
283283
});
284284
}
@@ -292,19 +292,18 @@ export const queueBitlyImport = async (payload: {
292292
domains: string[];
293293
folderId?: string;
294294
tagsToId?: Record<string, string>;
295-
nextSearchAfter?: string | null;
295+
searchAfter?: string | null;
296296
count?: number;
297297
rateLimited?: boolean;
298298
delay?: number;
299299
}) => {
300-
const { tagsToId, nextSearchAfter, delay, ...rest } = payload;
300+
const { tagsToId, delay, ...rest } = payload;
301301

302302
return await qstash.publishJSON({
303303
url: `${APP_DOMAIN_WITH_NGROK}/api/cron/import/bitly`,
304304
body: {
305305
...rest,
306306
importTags: tagsToId ? true : false,
307-
searchAfter: nextSearchAfter,
308307
},
309308
...(delay && { delay }),
310309
});

0 commit comments

Comments
 (0)