Update add command to still use the total moons

This commit is contained in:
Ethan Lane 2024-09-29 11:23:46 +01:00
parent 476ff7cfc4
commit 10e51c8e90

View file

@ -22,7 +22,9 @@ export default async function AddMoon(interaction: CommandInteraction) {
await moonSetting.Save(UserSetting, moonSetting);
const moon = new Moon(moonCount + 1, description, interaction.user.id);
const allMoons = await Moon.FetchMoonCountByUserId(interaction.user.id);
const moon = new Moon(allMoons + 1, description, interaction.user.id);
await moon.Save(Moon, moon);