🚑 spelled throw wrong
This commit is contained in:
parent
0534773cc5
commit
9baa207df9
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue