Merge pull request 'store pornhub gallery results into redis only if search is not empty' (#109) from v0.4.0/fix-pornhub-redis-empty-search-issue into develop
Reviewed-on: #109
This commit is contained in:
commit
a2e61d83f1
|
@ -51,7 +51,9 @@ export const fetchPornHubGalleryData = async (params?: FetchParams): Promise<Gal
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (data.length > 0) {
|
||||||
await storeDataIntoRedis(queryUrl, data, DEFAULT_PORNHUB_GALLERY_EXPIRY);
|
await storeDataIntoRedis(queryUrl, data, DEFAULT_PORNHUB_GALLERY_EXPIRY);
|
||||||
|
}
|
||||||
|
|
||||||
}).catch((error: AxiosError) => {
|
}).catch((error: AxiosError) => {
|
||||||
// handle errors
|
// handle errors
|
||||||
|
|
Loading…
Reference in New Issue