fix(aurora): added two conditional statements to fix an error

This commit is contained in:
Seaswimmer 2024-05-04 14:54:14 -04:00
parent 1d825625f3
commit 92f9619cea
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -59,8 +59,8 @@ class Moderation(BaseModel):
"resolved_by": result[11],
"resolve_reason": result[12],
"expired": bool(result[13]),
"changes": json.loads(result[14]),
"metadata": json.loads(result[15]),
"changes": json.loads(result[14]) if result[14] else [],
"metadata": json.loads(result[15]) if result[15] else {},
}
cursor.close()