🐛 Fix bug and add improvements to Notion (#2750)

* 🐛 Fix bug when filtering columns type number

* 🐛 Fix issue with date filtering

*  Enable file support in v2

*  Remvoe spaces when using comma-seperated relation ids

* 🐛 Fix issue that removes url and id when downloading data

*  Filter out bots when loading users
This commit is contained in:
Ricardo Espinoza
2022-02-24 17:27:06 -05:00
committed by GitHub
parent 4df958807d
commit 345fa7c9c3
3 changed files with 19 additions and 18 deletions

View File

@@ -126,10 +126,12 @@ export class NotionV1 implements INodeType {
const returnData: INodePropertyOptions[] = [];
const users = await notionApiRequestAllItems.call(this, 'results', 'GET', '/users');
for (const user of users) {
returnData.push({
name: user.name,
value: user.id,
});
if (user.type === 'person') {
returnData.push({
name: user.name,
value: user.id,
});
}
}
return returnData;
},