Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(pinterest): make the numeric board id mapping actually match

Gilad Resisi002a341bcce2
diff --git a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
index 7f6354b28..40251c71d 100644
--- a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
@@ -128,7 +128,10 @@ export class PinterestProvider
'Pinterest was unable to reach the URL provided. Please check the link and try again.',
};
}
- if (body.indexOf(`does not match '^\\\\\\\\\\\\\\\\d+$'`) > -1) {
+ if (
+ body.indexOf("does not match '^") > -1 &&
+ body.indexOf("d+$'") > -1
+ ) {
return {
type: 'bad-body' as const,
value: