Skip to content

Commit 1b9943d

Browse files
authored
Merge pull request woz-u#1 from garretthogan/twitter-api-update
destructuring statuses from an extra layer deep to fix bug in view
2 parents da37b83 + 4123b92 commit 1b9943d

File tree

2 files changed

+1261
-1261
lines changed

2 files changed

+1261
-1261
lines changed

controllers/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ exports.getTwitter = async (req, res, next) => {
244244
access_token_secret: token.tokenSecret
245245
});
246246
try {
247-
const { statuses: tweets } = await T.get('search/tweets', {
247+
const { data: { statuses: tweets } } = await T.get('search/tweets', {
248248
q: 'nodejs since:2013-01-01',
249249
geocode: '40.71448,-74.00598,5mi',
250250
count: 10

0 commit comments

Comments
 (0)