We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608185f commit 8bb1fc8Copy full SHA for 8bb1fc8
libraries/nestjs-libraries/src/integrations/social/x.provider.ts
@@ -319,7 +319,7 @@ export class XProvider extends SocialAbstract implements SocialProvider {
319
return {
320
id: await this.runInConcurrent(
321
async () =>
322
- client.v1.uploadMedia(
+ client.v2.uploadMedia(
323
m.path.indexOf('mp4') > -1
324
? Buffer.from(await readOrFetch(m.path))
325
: await sharp(await readOrFetch(m.path), {
@@ -331,7 +331,7 @@ export class XProvider extends SocialAbstract implements SocialProvider {
331
.gif()
332
.toBuffer(),
333
{
334
- mimeType: lookup(m.path) || '',
+ media_type: (lookup(m.path) || '') as any,
335
}
336
),
337
true
0 commit comments