comms: include full_user_id when renaming
This commit is contained in:
parent
d8c3bb2f1b
commit
1cce304872
@ -295,8 +295,8 @@ spec:
|
|||||||
if not new:
|
if not new:
|
||||||
continue
|
continue
|
||||||
cur.execute(
|
cur.execute(
|
||||||
"INSERT INTO profiles (user_id, displayname) VALUES (%s, %s) ON CONFLICT (user_id) DO UPDATE SET displayname = EXCLUDED.displayname",
|
"INSERT INTO profiles (user_id, displayname, full_user_id) VALUES (%s, %s, %s) ON CONFLICT (user_id) DO UPDATE SET displayname = EXCLUDED.displayname",
|
||||||
(user_id, new),
|
(user_id, new, user_id),
|
||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user