import: Fix incorrect RealmEmoji query.

The name field is not present in exports from the S3 backend.
This commit is contained in:
Tim Abbott 2024-10-08 17:13:20 -07:00
parent 4caa396f49
commit ba8801b07f
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,7 @@ def process_emojis(
# while 3rd party exports don't use the deactivated field, so this shouldn't
# particularly matter.
RealmEmoji.objects.filter(
name=record["name"], realm_id=user_profile.realm_id, deactivated=False
file_name=record["file_name"], realm_id=user_profile.realm_id, deactivated=False
).update(is_animated=True)