Skip to content

Commit 8022cb9

Browse files
committed
fix await outisde async function
1 parent 33f71ec commit 8022cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def get_cdn_asset(assetId: str):
177177

178178

179179
@api.get("/getserverstructure", description="Get a server structure.")
180-
def get_server_structure(id: int, token: Annotated[str, fastapi.Query(max_length=85, min_length=71)] = None):
180+
async def get_server_structure(id: int, token: Annotated[str, fastapi.Query(max_length=85, min_length=71)] = None):
181181
data_token = await astroidapi.surrealdb_handler.TokenHandler.get_token(id)
182182
if token is not None:
183183
if token == data_token or token == Bot.config.MASTER_TOKEN:

0 commit comments

Comments
 (0)