🐛 fix #15. skip when there is no search term

This commit is contained in:
kawamataryo 2023-09-30 07:30:18 +09:00
parent d59988a700
commit 19054a830a

View File

@ -62,6 +62,9 @@ export const searchAndInsertBskyUsers = async (
// Loop over search parameters and break if a user is found
for (const term of searchTerms) {
if (!term) {
continue
}
const [searchResult] = await agent.searchUser({
term: term,
limit: 1,