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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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