π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: retry no activity
Nevo David6859f0d04942
diff --git a/libraries/nestjs-libraries/src/integrations/social/linkedin.provider.ts b/libraries/nestjs-libraries/src/integrations/social/linkedin.provider.tsindex fdb656856..b07b361ce 100644--- a/libraries/nestjs-libraries/src/integrations/social/linkedin.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/linkedin.provider.ts@@ -15,6 +15,7 @@ import { LinkedinDto } from '@gitroom/nestjs-libraries/dtos/posts/providers-settimport imageToPDF from 'image-to-pdf';import { Readable } from 'stream';import { Rules } from '@gitroom/nestjs-libraries/chat/rules.description.decorator';+import { string } from 'yup';@Rules('LinkedIn can have maximum one attachment when selecting video, when choosing a carousel on LinkedIn minimum amount of attachment must be two, and only pictures, if uploading a video, LinkedIn can have only one attachment'@@ -40,6 +41,22 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {maxLength() {return 3000;}++ override handleErrors(+ body: string+ ):+ | { type: 'refresh-token' | 'bad-body' | 'retry'; value: string }+ | undefined {+ if (body.indexOf('Unable to obtain activity') > -1) {+ return {+ type: 'retry',+ value: 'Unable to obtain activity',+ };+ }++ return undefined;+ }+async refreshToken(refresh_token: string): Promise<AuthTokenDetails> {const {access_token: accessToken,