This commit is contained in:
parent
4b77cea690
commit
cefc77e8e4
3
main.py
3
main.py
|
@ -6,6 +6,7 @@ from ariadne.asgi import GraphQL
|
|||
from sentry_sdk.integrations.ariadne import AriadneIntegration
|
||||
from sentry_sdk.integrations.redis import RedisIntegration
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from sentry_sdk.integrations.starlette import StarletteIntegration
|
||||
from starlette.applications import Starlette
|
||||
from starlette.endpoints import HTTPEndpoint, Request
|
||||
from starlette.responses import JSONResponse
|
||||
|
@ -36,7 +37,7 @@ async def start_up():
|
|||
sentry_sdk.init(
|
||||
SENTRY_DSN,
|
||||
enable_tracing=True,
|
||||
integrations=[AriadneIntegration(), SqlalchemyIntegration(), RedisIntegration()],
|
||||
integrations=[StarletteIntegration(), AriadneIntegration(), SqlalchemyIntegration(), RedisIntegration()],
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
@ -265,7 +265,7 @@ async def load_shouts_feed(_, info, options):
|
|||
|
||||
|
||||
@query.field("load_shouts_search")
|
||||
async def load_shouts_search(_, info, text, limit=50, offset=0):
|
||||
async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
||||
if text and len(text) > 2:
|
||||
return SearchService.search(text, limit, offset)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user