migration-fixes

This commit is contained in:
2022-06-25 09:31:44 +03:00
parent f92be99bce
commit 8041c02878
8 changed files with 2 additions and 1 deletions

View File

View File

View File

View File

View File

View File

View File

@@ -34,7 +34,7 @@ def migrate(entry):
res['old_id'] = entry['_id']
res['password'] = entry['services']['password'].get('bcrypt', '')
del entry['services']
del entry['subscribedTo']
if entry.get('subscribedTo', '') != '': del entry['subscribedTo']
res['username'] = entry['emails'][0]['address']
res['email'] = res['username']
res['wasOnlineAt'] = parse(entry.get('loggedInAt', entry['createdAt']))