fix(api): restful to restx migration issue (#24416)
This commit is contained in:
parent
5ff3947312
commit
f31ddc4b1c
3 changed files with 3 additions and 15 deletions
|
|
@ -4,7 +4,7 @@ from libs.helper import TimestampField
|
|||
|
||||
|
||||
class HiddenAPIKey(fields.Raw):
|
||||
def output(self, key, obj):
|
||||
def output(self, key, obj, **kwargs):
|
||||
api_key = obj.api_key
|
||||
# If the length of the api_key is less than 8 characters, show the first and last characters
|
||||
if len(api_key) <= 8:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue