Skip to content

Commit 60a46e9

Browse files
committed
Add Missing Metrics
1 parent 0ceaff6 commit 60a46e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const upload = multer();
2121
const DEFAULT_THREADS_QUERY_LIMIT = 10;
2222

2323
const FIELD__ALT_TEXT = 'alt_text';
24+
const FIELD__CLICKS = 'clicks';
2425
const FIELD__ERROR_MESSAGE = 'error_message';
2526
const FIELD__FOLLOWERS_COUNT = 'followers_count';
2627
const FIELD__HIDE_STATUS = 'hide_status';
@@ -38,6 +39,7 @@ const FIELD__REPLIES = 'replies';
3839
const FIELD__REPOSTS = 'reposts';
3940
const FIELD__QUOTES = 'quotes';
4041
const FIELD__REPLY_AUDIENCE = 'reply_audience';
42+
const FIELD__SHARES = 'shares';
4143
const FIELD__STATUS = 'status';
4244
const FIELD__TEXT = 'text';
4345
const FIELD__TIMESTAMP = 'timestamp';
@@ -237,6 +239,7 @@ app.get('/userInsights', loggedInUserChecker, async (req, res) => {
237239
FIELD__REPLIES,
238240
FIELD__QUOTES,
239241
FIELD__REPOSTS,
242+
FIELD__CLICKS,
240243
FIELD__FOLLOWERS_COUNT,
241244
].join(',')
242245
};
@@ -694,6 +697,7 @@ app.get('/threads/:threadId/insights', loggedInUserChecker, async (req, res) =>
694697
FIELD__REPLIES,
695698
FIELD__REPOSTS,
696699
FIELD__QUOTES,
700+
FIELD__SHARES,
697701
].join(',')
698702
};
699703
if (since) {

0 commit comments

Comments
 (0)