From 7f99c0ac294a48d67a424d6f654363e982f44c9f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 14 Jun 2026 12:45:28 -0600 Subject: [PATCH] Add missing db feilds --- interactions/chatCommand/getnumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions/chatCommand/getnumber.js b/interactions/chatCommand/getnumber.js index 1c3b88e..97fd372 100644 --- a/interactions/chatCommand/getnumber.js +++ b/interactions/chatCommand/getnumber.js @@ -41,7 +41,7 @@ module.exports = (interaction, client, bvs) => { console.log(`Successfully purchased DID ${didToPurchase} for user ${interaction.user.id}`); const extension = results[0].extension; // insert into incoming, set extension = "+{did}", destination = from-did-direct,{extension},1, description = "NitroDID For {displayName} ({discordId})" - global.db.query("INSERT INTO incoming (extension, destination, description) VALUES (?, ?, ?)", [`+${didToPurchase}`, `from-did-direct,${extension},1`, `NitroDID For ${interaction.user.displayName} (${interaction.user.id})`]).then(() => { + global.db.query("INSERT INTO incoming (extension, destination, description, pricid, fanswer, cidnum, pmmaxretries, ringing, pmminlength, alertinfo, delay_answer, grppre, privacyman, reversal) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", [`+1${didToPurchase}`, `from-did-direct,${extension},1`, `NitroDID For ${interaction.user.displayName} (${interaction.user.id})`, '', '', '', '3', '', '10', '', 0, '', 0, '']).then(() => { interaction.editReply({ content: `Successfully purchased DID \`${bvs.formatPhoneNumber(didToPurchase)}\`. It may take a few minutes for the purchase to fully process. Please allow up to 5 hours for the number to become active. If you are having issues, please contact support!`, ephemeral: true }); // Run `fwconsole reload` on host const { exec } = require("child_process");