fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -216,7 +216,7 @@ export class NotionTrigger implements INodeType {
}
// if something changed after the last check
if (Array.isArray(data) && data.length && Object.keys(data[0]).length !== 0) {
if (Array.isArray(data) && data.length && Object.keys(data[0] as IDataObject).length !== 0) {
do {
body.page_size = 10;
const { results, has_more, next_cursor } = await notionApiRequest.call(
@@ -228,7 +228,7 @@ export class NotionTrigger implements INodeType {
'',
option,
);
records.push(...results);
records.push(...(results as IDataObject[]));
hasMore = has_more;
if (next_cursor !== null) {
body.start_cursor = next_cursor;