🚑 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 {
ChatInputCommandInteraction,
EmbedBuilder,
SlashCommandSubcommandBuilder
SlashCommandSubcommandBuilder,
} from "discord.js";
import mongoose from "mongoose";
// Configurations
@ -201,7 +201,9 @@ export default {
await session.abortTransaction();
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 {
// ending the session
session.endSession();