fix(PostBin Node): Fix issue with it throwing unnecessary error (#3494)

This commit is contained in:
Milorad FIlipović
2022-06-12 15:12:54 +02:00
committed by GitHub
parent 04f0bf5b65
commit 9df3e30d36

View File

@@ -76,6 +76,7 @@ export async function buildRequestURL(this: IExecuteSingleFunctions, requestOpti
function parseBinId(context: IExecuteSingleFunctions) {
const binId = context.getNodeParameter('binId') as string;
// Test if the Bin id is in the expected format
BIN_ID_REGEX.lastIndex = 0;
const idMatch = BIN_ID_REGEX.exec(binId);
// Return what is matched