api/snapchat: fix the reverse strict not equals operator

oh my god
This commit is contained in:
wukko 2024-08-06 21:35:39 +06:00
parent 4505d6cfe1
commit 03152375ec
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -60,7 +60,7 @@ async function getStory(username, storyId) {
picker: defaultStory.snapList.map(snap => ({
type: snap.snapMediaType === 0 ? 'photo' : 'video',
url: snap.snapUrls.mediaUrl,
thumb: snap.snapMediaType ==! 0 ? snap.snapUrls.mediaPreviewUrl.value : undefined,
thumb: snap.snapMediaType !== 0 ? snap.snapUrls.mediaPreviewUrl.value : undefined,
}))
}
}