From b8ee91ab9ab503abdb7c446d92b3fac33e83e587 Mon Sep 17 00:00:00 2001 From: jbe-dw <50663045+jbe-dw@users.noreply.github.com> Date: Sat, 30 Oct 2021 21:28:36 +0200 Subject: [PATCH] fix: Accounts API is broken (#996) --- powerdnsadmin/lib/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/lib/schema.py b/powerdnsadmin/lib/schema.py index daee29a..78d8369 100644 --- a/powerdnsadmin/lib/schema.py +++ b/powerdnsadmin/lib/schema.py @@ -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()