fix: hit-test failed when attachment id is not exist (#29563)

This commit is contained in:
Jyong
2025-12-12 13:45:00 +08:00
committed by GitHub
parent db42f467c8
commit 04d09c2d77

View File

@@ -178,8 +178,8 @@ class HitTestingService:
@classmethod
def hit_testing_args_check(cls, args):
query = args["query"]
attachment_ids = args["attachment_ids"]
query = args.get("query")
attachment_ids = args.get("attachment_ids")
if not attachment_ids and not query:
raise ValueError("Query or attachment_ids is required")