mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-23 20:12:22 -06:00
🐛 fix #15. skip when there is no search term
This commit is contained in:
parent
d59988a700
commit
19054a830a
@ -62,6 +62,9 @@ export const searchAndInsertBskyUsers = async (
|
|||||||
|
|
||||||
// Loop over search parameters and break if a user is found
|
// Loop over search parameters and break if a user is found
|
||||||
for (const term of searchTerms) {
|
for (const term of searchTerms) {
|
||||||
|
if (!term) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
const [searchResult] = await agent.searchUser({
|
const [searchResult] = await agent.searchUser({
|
||||||
term: term,
|
term: term,
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user