This commit is contained in:
Christopher Cookman 2024-07-31 23:41:35 -06:00
parent 6c84ab4f37
commit d37432d0a4
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -264,7 +264,7 @@ client.on("interactionCreate", async (interaction) => {
}); });
break; break;
case "update": // If the account is owned by the user and verified, update the phone number, unverify it, and send verification to the new number. Do the same checks as register case "update": // If the account is owned by the user and verified, update the phone number, unverify it, and send verification to the new number. Do the same checks as register
accountNumber = interaction.options.getInteger("account_number"); accountNumber = interaction.options.getString("account_number");
phone_number = interaction.options.getString("phone_number"); phone_number = interaction.options.getString("phone_number");
db.get("SELECT * FROM accounts WHERE discord_id = ? AND id = ? AND verified = 1", interaction.user.id, accountNumber, (err, row) => { db.get("SELECT * FROM accounts WHERE discord_id = ? AND id = ? AND verified = 1", interaction.user.id, accountNumber, (err, row) => {
if (err) { if (err) {