This commit is contained in:
parent
ae9e025959
commit
e6366d15f6
|
@ -312,7 +312,9 @@ async def load_shouts_feed(_, info, options):
|
|||
@query.field('load_shouts_search')
|
||||
async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
||||
if isinstance(text, str) and len(text) > 2:
|
||||
return await search_text(text, limit, offset)
|
||||
results = await search_text(text, limit, offset)
|
||||
logger.debug(results)
|
||||
return results
|
||||
return []
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user