🚑 spelled throw wrong

This commit is contained in:
Axel Olausson Holtenäs 2022-10-14 12:53:00 +02:00
parent 0534773cc5
commit 9baa207df9

View file

@ -3,7 +3,7 @@
import { import {
ChatInputCommandInteraction, ChatInputCommandInteraction,
EmbedBuilder, EmbedBuilder,
SlashCommandSubcommandBuilder SlashCommandSubcommandBuilder,
} from "discord.js"; } from "discord.js";
import mongoose from "mongoose"; import mongoose from "mongoose";
// Configurations // Configurations
@ -201,7 +201,9 @@ export default {
await session.abortTransaction(); await session.abortTransaction();
session.endSession(); session.endSession();
thorw new Error("An error occurred while trying to gift credits. Please try again later.") throw new Error(
"An error occurred while trying to gift credits. Please try again later."
);
} finally { } finally {
// ending the session // ending the session
session.endSession(); session.endSession();