Fix mobile device table migration

This commit is contained in:
JonnyWong16
2020-10-25 10:51:32 -07:00
parent 0136fc6436
commit d746d2913f

View File

@@ -2043,7 +2043,7 @@ def dbcheck():
# Update official mobile device flag
for device_id, in c_db.execute('SELECT device_id FROM mobile_devices').fetchall():
c_db.execute('UPDATE mobile_devices SET official = ? WHERE device_id = ?',
[mobile_app.validate_device_id(device_id), device_id])
[mobile_app.validate_onesignal_id(device_id), device_id])
# Upgrade mobile_devices table from earlier versions
try: