Commit cd1c3a3c authored by Zash's avatar Zash Committed by Philipp Hörist
Browse files

UserAvatar: Purge instead of of delete Avatar data nodes

Leaves any node configuration intact
parent 6e1bf194
Pipeline #8424 failed with stages
in 2 minutes and 45 seconds
......@@ -42,7 +42,7 @@ class UserAvatar(BaseModule):
'publish': 'PubSub',
'request_item': 'PubSub',
'request_items': 'PubSub',
'delete': 'PubSub',
'purge': 'PubSub',
}
def __init__(self, client):
......@@ -141,7 +141,7 @@ class UserAvatar(BaseModule):
result = yield self._publish_avatar_metadata(None, access_model)
raise_if_error(result)
result = yield self.delete(Namespace.AVATAR_DATA)
result = yield self.purge(Namespace.AVATAR_DATA)
yield finalize(task, result)
result = yield self._publish_avatar(avatar, access_model)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment