fix: can not test custom tool (#15606)

pull/15643/head
非法操作 11 months ago committed by GitHub
parent 58f012f3de
commit 5019547d33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -102,6 +102,8 @@ class ApiToolProvider(Base):
@property
def user(self) -> Account | None:
if not self.user_id:
return None
return db.session.query(Account).filter(Account.id == self.user_id).first()
@property

Loading…
Cancel
Save