fix: Accounts API is broken (#996)

This commit is contained in:
jbe-dw 2021-10-30 21:28:36 +02:00 committed by GitHub
parent c246775ffe
commit b8ee91ab9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class UserDetailedSchema(Schema):
lastname = fields.String()
email = fields.String()
role = fields.Embed(schema=RoleSchema)
accounts = fields.Embed(schema=AccountSummarySchema)
accounts = fields.Embed(schema=AccountSummarySchema, many=True)
class AccountSchema(Schema):
id = fields.Integer()