From c605074d05d189f171a0cd5731fe9433f5f32b03 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Feb 2023 12:52:36 -0500 Subject: [PATCH] Updated to send discord id --- controllers/chatGptController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/chatGptController.js b/controllers/chatGptController.js index 8ed1ba2..3c23039 100644 --- a/controllers/chatGptController.js +++ b/controllers/chatGptController.js @@ -67,7 +67,7 @@ exports.submitPromptTransaction = async (interaction, callback) => { const discordTokensUsed = gptResult.usage.total_tokens; if (gptResult){ - createTransaction(gptResult.id, interaction.member.user, discordTokensUsed, gptResult.usage.total_tokens, 1, async (err, transactionResult) => { + createTransaction(gptResult.id, interaction.member.id, discordTokensUsed, gptResult.usage.total_tokens, 1, async (err, transactionResult) => { if (err) callback(err, undefined); if (transactionResult){