fix(moderation): updated metadata importing
This commit is contained in:
parent
452799e5ca
commit
67836d034d
1 changed files with 5 additions and 4 deletions
|
@ -60,10 +60,11 @@ class ImportModerationView(ui.View):
|
|||
if "changes" not in case or not case["changes"]:
|
||||
case["changes"] = []
|
||||
|
||||
if "metadata" not in case or not case["metadata"]:
|
||||
case["metadata"] = {}
|
||||
if "metadata" not in case:
|
||||
metadata = {}
|
||||
else:
|
||||
case["metadata"].update({
|
||||
metadata: dict = case["metadata"]
|
||||
metadata.update({
|
||||
'imported_from': 'SeaCogs/Moderation'
|
||||
})
|
||||
|
||||
|
@ -88,7 +89,7 @@ class ImportModerationView(ui.View):
|
|||
resolved_reason=case["resolve_reason"],
|
||||
expired=case["expired"],
|
||||
changes=case["changes"],
|
||||
metadata=case["metadata"],
|
||||
metadata=metadata,
|
||||
database=database,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue