Skip to content

Commit d86838e

Browse files
committed
fix(x): add missing newestId and oldestId to error meta in get_liked_tweets and get_quote_tweets
1 parent 7107fbb commit d86838e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

apps/sim/tools/x/get_liked_tweets.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ export const xGetLikedTweetsTool: ToolConfig<XGetLikedTweetsParams, XTweetListRe
7575
success: false,
7676
output: {
7777
tweets: [],
78-
meta: { resultCount: 0, nextToken: null, previousToken: null },
78+
meta: {
79+
resultCount: 0,
80+
newestId: null,
81+
oldestId: null,
82+
nextToken: null,
83+
previousToken: null,
84+
},
7985
},
8086
error: data.errors?.[0]?.detail ?? 'No liked tweets found or invalid response',
8187
}

apps/sim/tools/x/get_quote_tweets.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ export const xGetQuoteTweetsTool: ToolConfig<XGetQuoteTweetsParams, XTweetListRe
7676
error: data.errors?.[0]?.detail || 'No quote tweets found or invalid response',
7777
output: {
7878
tweets: [],
79-
meta: { resultCount: 0, nextToken: null, previousToken: null },
79+
meta: {
80+
resultCount: 0,
81+
newestId: null,
82+
oldestId: null,
83+
nextToken: null,
84+
previousToken: null,
85+
},
8086
},
8187
}
8288
}

0 commit comments

Comments
 (0)