mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user