Use right key

This commit is contained in:
Tarrgon
2026-06-30 15:01:15 -04:00
parent 106933df5b
commit e1d4d1ef54
+1 -1
View File
@@ -17,7 +17,7 @@ async function main() {
db.exec('BEGIN TRANSACTION');
for (const name of discordNames) {
db.run('UPDATE discord_names SET discord_id = ?, discord_username = ?, discord_id_hash = ?, discord_username_hash = ? WHERE id = ?', Encrypter.encrypt(name.user_id), Encrypter.encrypt(name.discord_username), Encrypter.hash(name.user_id), Encrypter.hash(name.discord_username), name.id);
db.run('UPDATE discord_names SET discord_id = ?, discord_username = ?, discord_id_hash = ?, discord_username_hash = ? WHERE id = ?', Encrypter.encrypt(name.discord_id), Encrypter.encrypt(name.discord_username), Encrypter.hash(name.discord_id), Encrypter.hash(name.discord_username), name.id);
}
db.exec('COMMIT');