Commit
·
a0fe71c
1
Parent(s):
c7cf68e
🐛 FIx crash
Browse files
server.ts
CHANGED
@@ -63,6 +63,10 @@ async function lookupTweets() {
|
|
63 |
}`
|
64 |
);
|
65 |
|
|
|
|
|
|
|
|
|
66 |
let lookups: TweetLookups = await ff(
|
67 |
`tweets?ids=${data.data
|
68 |
.map((t) => t.id)
|
|
|
63 |
}`
|
64 |
);
|
65 |
|
66 |
+
if (!data.data || !data.data.length) {
|
67 |
+
return;
|
68 |
+
}
|
69 |
+
|
70 |
let lookups: TweetLookups = await ff(
|
71 |
`tweets?ids=${data.data
|
72 |
.map((t) => t.id)
|