WIP: Planning more tests
All checks were successful
Test / build (push) Successful in 10s

This commit is contained in:
Ethan Lane 2024-10-31 16:56:36 +00:00
parent 974e298214
commit 43751e5b02
5 changed files with 91 additions and 42 deletions

View file

@ -24,11 +24,7 @@ export default async function AddMoon(interaction: CommandInteraction) {
const allMoons = await Moon.FetchMoonCountByUserId(interaction.user.id);
let moonNumber = allMoons + 1;
if (allMoons < moonCount) {
moonNumber = moonCount + 1;
}
const moonNumber = allMoons + 1;
const moon = new Moon(moonNumber, description, interaction.user.id);