mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Notion (Beta) Node): Fix create database page fails if relation param is empty/undefined (#5182)
* 🐛 fix create database page fails if relation param is empty/undefined * ⚡ uuid validation * ⚡ uuid error handling Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
@@ -359,7 +359,7 @@ export class NotionV1 implements INodeType {
|
||||
[],
|
||||
) as IDataObject[];
|
||||
if (properties.length !== 0) {
|
||||
body.properties = mapProperties(properties, timezone) as IDataObject;
|
||||
body.properties = mapProperties.call(this, properties, timezone) as IDataObject;
|
||||
}
|
||||
const blockValues = this.getNodeParameter('blockUi.blockValues', i, []) as IDataObject[];
|
||||
extractDatabaseMentionRLC(blockValues);
|
||||
@@ -460,7 +460,7 @@ export class NotionV1 implements INodeType {
|
||||
properties: {},
|
||||
};
|
||||
if (properties.length !== 0) {
|
||||
body.properties = mapProperties(properties, timezone) as IDataObject;
|
||||
body.properties = mapProperties.call(this, properties, timezone) as IDataObject;
|
||||
}
|
||||
responseData = await notionApiRequest.call(this, 'PATCH', `/pages/${pageId}`, body);
|
||||
if (simple) {
|
||||
|
||||
Reference in New Issue
Block a user