mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
fix(PostBin Node): Fix issue with it throwing unnecessary error (#3494)
This commit is contained in:
committed by
GitHub
parent
04f0bf5b65
commit
9df3e30d36
@@ -76,6 +76,7 @@ export async function buildRequestURL(this: IExecuteSingleFunctions, requestOpti
|
|||||||
function parseBinId(context: IExecuteSingleFunctions) {
|
function parseBinId(context: IExecuteSingleFunctions) {
|
||||||
const binId = context.getNodeParameter('binId') as string;
|
const binId = context.getNodeParameter('binId') as string;
|
||||||
// Test if the Bin id is in the expected format
|
// Test if the Bin id is in the expected format
|
||||||
|
BIN_ID_REGEX.lastIndex = 0;
|
||||||
const idMatch = BIN_ID_REGEX.exec(binId);
|
const idMatch = BIN_ID_REGEX.exec(binId);
|
||||||
|
|
||||||
// Return what is matched
|
// Return what is matched
|
||||||
|
|||||||
Reference in New Issue
Block a user