Skip to content

Commit

Permalink
Used a separate endpoint for fetching tweet details
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishikant181 committed Jun 17, 2024
1 parent eb17c64 commit 30bf669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collections/Requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const requests: { [key in keyof typeof EResourceType]: (args: FetchArgs |
MEDIA_UPLOAD_FINALIZE: (args: PostArgs) => request.media.finalizeUpload(args.upload!.id!),
MEDIA_UPLOAD_INITIALIZE: (args: PostArgs) => request.media.initializeUpload(args.upload!.size!),

TWEET_DETAILS: (args: FetchArgs) => request.tweet.details(args.id!),
TWEET_DETAILS: (args: FetchArgs) => request.tweet.replies(args.id!),
TWEET_LIKE: (args: PostArgs) => request.tweet.like(args.id!),
TWEET_LIKERS: (args: FetchArgs) => request.tweet.likers(args.id!, args.count, args.cursor),
TWEET_POST: (args: PostArgs) => request.tweet.post(args.tweet!),
Expand Down

0 comments on commit 30bf669

Please sign in to comment.