Winwardo / solid-octo-disco

Topher and Vasily's Intelligent Web Assignment
0 stars 0 forks source link

tweetFinder.js:332 check that the record is full #165

Open VasilyShelkov opened 8 years ago

VasilyShelkov commented 8 years ago

to stop errors like: this record is invalid and cannot be processed { '@type': 'd', '@class': 'Tweet', id: '719237915180711936', content: 'Season in Season out, Arsenal starts d #BPL on top (by virtue of alphabetical order) bt are yet to win it in 12yrs. Leicester has won it tho', date: Sun Apr 10 2016 19:57:36 GMT+0100 (BST), likes: 0, retweets: 1, longitude: 0, latitude: 0, contains_a_quoted_tweet: '', image_url: 'none', authorId: null, authorName: null, authorHandle: null, authorProfileImage: null, isVerified: null, isUserMention: null, '@rid': { [String: '#-2:1'] cluster: -2, position: 1 }, '@version': 1 }

this is caused by getting the OriginalTweetUserFromTweet before the author has been inserted into the DB but the tweet has been